Przeglądaj źródła

Correction bug chargement producteurs sur frontend

dev
Guillaume Bourgeois 5 lat temu
rodzic
commit
4432dd57d7
1 zmienionych plików z 7 dodań i 5 usunięć
  1. +7
    -5
      common/models/Producer.php

+ 7
- 5
common/models/Producer.php Wyświetl plik

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

Ładowanie…
Anuluj
Zapisz