Explorar el Código

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

dev
Guillaume Bourgeois hace 5 años
padre
commit
c8c9337663
Se han modificado 1 ficheros con 0 adiciones y 2 borrados
  1. +0
    -2
      backend/views/layouts/header.php

+ 0
- 2
backend/views/layouts/header.php Ver fichero

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

Cargando…
Cancelar
Guardar