@@ -204,7 +204,10 @@ class Distribution extends ActiveRecordCommon | |||
{ | |||
$distributionsArray = Distribution::find() | |||
->where('date > \'' . date('Y-m-d').'\'') | |||
->andWhere(['id_producer' => Producer::getId()]) | |||
->andWhere([ | |||
'id_producer' => Producer::getId(), | |||
'active' => 1 | |||
]) | |||
->orderBy('date ASC') | |||
->all(); | |||