浏览代码

Correction bug chargement producteurs sur frontend

dev
父节点
当前提交
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 = [];

正在加载...
取消
保存