소스 검색

Correction bug chargement producteurs sur frontend

refactoring
부모
커밋
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…
취소
저장