// Small fixes on AdminProduct tab
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12711 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -878,6 +878,19 @@ class AdminCustomersControllerCore extends AdminController
|
||||
|
||||
return $tpl->fetch();
|
||||
}
|
||||
|
||||
/**
|
||||
* Search customers
|
||||
*/
|
||||
public function ajaxProcessSearchCustomers()
|
||||
{
|
||||
if ($customers = Customer::searchByName(pSQL(Tools::getValue('customer_search'))))
|
||||
$to_return = array('customers' => $customers, 'found' => true);
|
||||
else
|
||||
$to_return = array('found' => false);
|
||||
|
||||
$this->content = Tools::jsonEncode($to_return);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user