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

{ {
$distributionsArray = Distribution::find() $distributionsArray = Distribution::find()
->where('date > \'' . date('Y-m-d').'\'') ->where('date > \'' . date('Y-m-d').'\'')
->andWhere(['id_producer' => Producer::getId()])
->andWhere([
'id_producer' => Producer::getId(),
'active' => 1
])
->orderBy('date ASC') ->orderBy('date ASC')
->all(); ->all();

Loading…
Cancel
Save