Преглед на файлове

Correction bug chargement producteurs sur frontend

dev
Guillaume Bourgeois преди 5 години
родител
ревизия
4432dd57d7
променени са 1 файла, в които са добавени 7 реда и са изтрити 5 реда
  1. +7
    -5
      common/models/Producer.php

+ 7
- 5
common/models/Producer.php Целия файл

@@ -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 = [];

Loading…
Отказ
Запис