@@ -169,11 +169,13 @@ class Producer extends ActiveRecordCommon | |||
* @return array | |||
*/ | |||
public static function getProducerPopulateDropdown() | |||
{ | |||
$producers = Producer::searchAll( | |||
['active' => 1], | |||
['orderby' => 'postcode, city ASC'] | |||
) ; | |||
{ | |||
$producers = Producer::find() | |||
->where([ | |||
'active' => true, | |||
]) | |||
->orderBy('postcode, city ASC') | |||
->all() ; | |||
$departments = Departments::get(); | |||
$dataProducers = []; |