Bläddra i källkod

Merge branch 'dev'

prodstable
Guillaume 4 år sedan
förälder
incheckning
22f3cf350b
1 ändrade filer med 2 tillägg och 5 borttagningar
  1. +2
    -5
      backend/controllers/ProducerAdminController.php

+ 2
- 5
backend/controllers/ProducerAdminController.php Visa fil

@@ -91,16 +91,13 @@ class ProducerAdminController extends BackendController
$dataProviderProducer = new ActiveDataProvider([
'query' => Producer::find()
->with('userProducer', 'user')
->orderBy('free_price DESC'),
->orderBy('active DESC, free_price DESC'),
'pagination' => [
'pageSize' => 1000,
],
]);

$producersArray = Producer::find()
->with('userProducer', 'user')
->orderBy('free_price DESC')
->all();
$producersArray = Producer::find()->where('active = 1')->all();

$sumFreePrice = 0 ;
foreach($producersArray as $producer) {

Laddar…
Avbryt
Spara