Optimized function getCustomers() for easy understanding

This commit is contained in:
vishalsingh.qlo325
2024-07-10 15:29:40 +05:30
parent 5e4cae78e0
commit 2c84f09821
3 changed files with 24 additions and 26 deletions

View File

@@ -127,11 +127,12 @@ class AdminAddressesControllerCore extends AdminController
'id_customer' => 0,
'id_address'=> 0
));
$customerEmails = array_merge($customerEmails, Customer::getCustomers(null, false, 0));
$customerEmails = array_merge($customerEmails, Customer::getCustomers(null, 0, 0));
$customerField = array(
'type' => 'select',
'label' => $this->l('Customer'),
'name' => 'id_customer',
'required' => true,
'class' => 'chosen',
'options' => array(
'query' => $customerEmails,