Browse Source

Merge branch 'dev'

prodstable
Guillaume 4 years ago
parent
commit
eb6001d3ee
1 changed files with 6 additions and 2 deletions
  1. +6
    -2
      producer/controllers/OrderController.php

+ 6
- 2
producer/controllers/OrderController.php View File

@@ -87,8 +87,12 @@ class OrderController extends ProducerBaseController
'date' => $date,
'id_producer' => GlobalParam::getCurrentProducerId()
]);
if ($distribution) {
$params['date'] = $date;

if($distribution) {
$distributionsArray = Distribution::filterDistributionsByDateDelay([$distribution]) ;
if (count($distributionsArray) == 1) {
$params['date'] = $date;
}
}
}


Loading…
Cancel
Save