Browse Source

[backend] Récupération des distributions futures : uniquement celles qui sont actives

dev
Guillaume Bourgeois 5 years ago
parent
commit
06f946e808
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      common/models/Distribution.php

+ 4
- 1
common/models/Distribution.php View File

@@ -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();

Loading…
Cancel
Save