Browse Source

Correction bug chargement producteurs sur frontend

dev
Guillaume Bourgeois 5 years ago
parent
commit
4432dd57d7
1 changed files with 7 additions and 5 deletions
  1. +7
    -5
      common/models/Producer.php

+ 7
- 5
common/models/Producer.php View File

* @return array * @return array
*/ */
public static function getProducerPopulateDropdown() 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(); $departments = Departments::get();
$dataProducers = []; $dataProducers = [];

Loading…
Cancel
Save