Kaynağa Gözat

Correctif

refactoring
Guillaume Bourgeois 1 yıl önce
ebeveyn
işleme
dd66dba423
1 değiştirilmiş dosya ile 5 ekleme ve 4 silme
  1. +5
    -4
      producer/controllers/OrderController.php

+ 5
- 4
producer/controllers/OrderController.php Dosyayı Görüntüle

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

Yükleniyor…
İptal
Kaydet