Quellcode durchsuchen

[backend] Header : optimisation requête distributions passées et futures

refactoring
Guillaume Bourgeois vor 5 Jahren
Ursprung
Commit
c8c9337663
1 geänderte Dateien mit 0 neuen und 2 gelöschten Zeilen
  1. +0
    -2
      backend/views/layouts/header.php

+ 0
- 2
backend/views/layouts/header.php Datei anzeigen

@@ -74,7 +74,6 @@ $producer = Producer::getCurrent() ;
<?php
$pastDistributionsArray = Distribution::find()
->with('order')
->where(['<', 'distribution.date', date('Y-m-d')])
->andWhere([
'distribution.id_producer' => Producer::getId(),
@@ -87,7 +86,6 @@ $producer = Producer::getCurrent() ;
$pastDistributionsArray = array_reverse($pastDistributionsArray) ;
$incomingDistributionsArray = Distribution::find()
->with('order')
->where(['>=', 'distribution.date', date('Y-m-d')])
->andWhere([
'distribution.id_producer' => Producer::getId(),

Laden…
Abbrechen
Speichern