Plugin Directory

Changeset 3373687


Ignore:
Timestamp:
10/06/2025 12:39:38 PM (6 months ago)
Author:
openpos
Message:

update description

Location:
wpos-lite-version
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wpos-lite-version/tags/3.0/includes/api/Customer.php

    r3372336 r3373687  
    115115                $by = $request->get_param( 'by' ) ? $request->get_param( 'by' ) : '';
    116116               
    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) : '';
    118118                $multi = $request->get_param( 'multi' ) == 'yes' ? true : false;
    119119                if(!$by)
     
    236236                }
    237237               
    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));
    239239                $customer_id = isset($customer_request_data['id']) &&  $customer_request_data['id'] != 'null'  ? $customer_request_data['id'] : 0;
    240240
     
    386386                }
    387387               
    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));
    389389                $customer_id = isset($customer_request_data['id']) &&  $customer_request_data['id'] != 'null'  ? $customer_request_data['id'] : 0;
    390390
  • wpos-lite-version/trunk/includes/api/Customer.php

    r3372360 r3373687  
    115115                $by = $request->get_param( 'by' ) ? $request->get_param( 'by' ) : '';
    116116               
    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) : '';
    118118                $multi = $request->get_param( 'multi' ) == 'yes' ? true : false;
    119119                if(!$by)
     
    236236                }
    237237               
    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));
    239239                $customer_id = isset($customer_request_data['id']) &&  $customer_request_data['id'] != 'null'  ? $customer_request_data['id'] : 0;
    240240
     
    386386                }
    387387               
    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));
    389389                $customer_id = isset($customer_request_data['id']) &&  $customer_request_data['id'] != 'null'  ? $customer_request_data['id'] : 0;
    390390
Note: See TracChangeset for help on using the changeset viewer.