Преглед на файлове

Merge branch 'develop'

master
Guillaume Bourgeois преди 4 месеца
родител
ревизия
cba307a24f
променени са 1 файла, в които са добавени 10 реда и са изтрити 5 реда
  1. +10
    -5
      producer/controllers/OrderController.php

+ 10
- 5
producer/controllers/OrderController.php Целия файл

@@ -817,7 +817,10 @@ class OrderController extends ProducerBaseController
$orderModule = $this->getOrderModule();

$user = GlobalParam::getCurrentUser();
$userProducer = $this->getUserProducerModule()->getRepository()->findOneUserProducer($user);
$userProducer = null;
if($user) {
$userProducer = $this->getUserProducerModule()->getRepository()->findOneUserProducer($user);
}
$pointsSaleArray = PointSale::find();

if ($distribution) {
@@ -913,10 +916,12 @@ class OrderController extends ProducerBaseController
}

// Filtre par accès exclusif aux points de vente
$pointsSaleArray = $this->getUserProducerModule()->getSolver()->filterPointsSaleByExclusiveAccess(
$userProducer,
$pointsSaleArray
);
if($userProducer) {
$pointsSaleArray = $this->getUserProducerModule()->getSolver()->filterPointsSaleByExclusiveAccess(
$userProducer,
$pointsSaleArray
);
}

return $pointsSaleArray;
}

Loading…
Отказ
Запис