Pārlūkot izejas kodu

Correctif

refactoring
Guillaume Bourgeois pirms 1 gada
vecāks
revīzija
dd66dba423
1 mainītis faili ar 5 papildinājumiem un 4 dzēšanām
  1. +5
    -4
      producer/controllers/OrderController.php

+ 5
- 4
producer/controllers/OrderController.php Parādīt failu

@@ -746,10 +746,11 @@ class OrderController extends ProducerBaseController
$producerManager = $this->getProducerManager();

$user = GlobalParam::getCurrentUser();
$userProducer = $userProducerManager->findOneUserProducer($user, $producer);

if ($user && !$userProducer) {
$userProducer = $producerManager->addUser($user, $producer);
if($user) {
$userProducer = $userProducerManager->findOneUserProducer($user, $producer);
if (!$userProducer) {
$userProducer = $producerManager->addUser($user, $producer);
}
}

$jsonUser = false;

Notiek ielāde…
Atcelt
Saglabāt