// 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:
rGaillard
2012-01-26 12:50:41 +00:00
parent 1aea427aaa
commit 735b3c07c0
6 changed files with 176 additions and 185 deletions
@@ -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);
}
}