Fixed ordering for Autocomplete on countries and customers
This commit is contained in:
parent
53f2d3fccc
commit
75f8434a9b
|
|
@ -79,7 +79,7 @@ class CountriesController extends AppController {
|
|||
$countries = $this->Country->find('all', array(
|
||||
'conditions' => array(
|
||||
'Country.name LIKE' => '%'.$query.'%'
|
||||
),'fields' => array('Country.name')
|
||||
),'fields' => array('Country.name'), 'order' =>array('Country.name ASC')
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -111,7 +111,8 @@ class CustomersController extends AppController {
|
|||
$customers = $this->Customer->find('all', array(
|
||||
'conditions' => array(
|
||||
'Customer.name LIKE' => '%'.$query.'%'
|
||||
),'fields' => array('Customer.name')
|
||||
),'fields' => array('Customer.name'),
|
||||
'order' => array('Customer.name ASC')
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue