Changeset 3373687
- Timestamp:
- 10/06/2025 12:39:38 PM (6 months ago)
- Location:
- wpos-lite-version
- Files:
-
- 2 edited
-
tags/3.0/includes/api/Customer.php (modified) (3 diffs)
-
trunk/includes/api/Customer.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wpos-lite-version/tags/3.0/includes/api/Customer.php
r3372336 r3373687 115 115 $by = $request->get_param( 'by' ) ? $request->get_param( 'by' ) : ''; 116 116 117 $search_data = $request->get_param( 'by_data' ) ? json_decode( stripslashes($request->get_param( 'by_data' )),true) : '';117 $search_data = $request->get_param( 'by_data' ) ? json_decode($request->get_param( 'by_data' ),true) : ''; 118 118 $multi = $request->get_param( 'multi' ) == 'yes' ? true : false; 119 119 if(!$by) … … 236 236 } 237 237 238 $customer_request_data = apply_filters('op_new_customer_request', $by_data);238 $customer_request_data = apply_filters('op_new_customer_request',json_decode($by_data,true)); 239 239 $customer_id = isset($customer_request_data['id']) && $customer_request_data['id'] != 'null' ? $customer_request_data['id'] : 0; 240 240 … … 386 386 } 387 387 388 $customer_request_data = apply_filters('op_new_customer_request', $by_data);388 $customer_request_data = apply_filters('op_new_customer_request',json_decode($by_data,true)); 389 389 $customer_id = isset($customer_request_data['id']) && $customer_request_data['id'] != 'null' ? $customer_request_data['id'] : 0; 390 390 -
wpos-lite-version/trunk/includes/api/Customer.php
r3372360 r3373687 115 115 $by = $request->get_param( 'by' ) ? $request->get_param( 'by' ) : ''; 116 116 117 $search_data = $request->get_param( 'by_data' ) ? json_decode( stripslashes($request->get_param( 'by_data' )),true) : '';117 $search_data = $request->get_param( 'by_data' ) ? json_decode($request->get_param( 'by_data' ),true) : ''; 118 118 $multi = $request->get_param( 'multi' ) == 'yes' ? true : false; 119 119 if(!$by) … … 236 236 } 237 237 238 $customer_request_data = apply_filters('op_new_customer_request', $by_data);238 $customer_request_data = apply_filters('op_new_customer_request',json_decode($by_data,true)); 239 239 $customer_id = isset($customer_request_data['id']) && $customer_request_data['id'] != 'null' ? $customer_request_data['id'] : 0; 240 240 … … 386 386 } 387 387 388 $customer_request_data = apply_filters('op_new_customer_request', $by_data);388 $customer_request_data = apply_filters('op_new_customer_request',json_decode($by_data,true)); 389 389 $customer_id = isset($customer_request_data['id']) && $customer_request_data['id'] != 'null' ? $customer_request_data['id'] : 0; 390 390
Note: See TracChangeset
for help on using the changeset viewer.