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

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

@@ -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;

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