Bläddra i källkod

Correctif

refactoring
Guillaume Bourgeois 1 år sedan
förälder
incheckning
84ce4bbd6b
2 ändrade filer med 3 tillägg och 2 borttagningar
  1. +1
    -1
      frontend/controllers/SiteController.php
  2. +2
    -1
      producer/controllers/OrderController.php

+ 1
- 1
frontend/controllers/SiteController.php Visa fil

@@ -406,7 +406,7 @@ class SiteController extends FrontendController

if ($signupForm->load($this->getRequest()->post())
&& ($user = $signupForm->signup())
&& $this->getUserCurrent()->login($user)) {
&& Yii::$app->user->login($user)) {

$this->redirect($returnUrl);
}

+ 2
- 1
producer/controllers/OrderController.php Visa fil

@@ -744,8 +744,9 @@ class OrderController extends ProducerBaseController
{
$userProducerManager = $this->getUserProducerManager();
$producerManager = $this->getProducerManager();
$user = GlobalParam::getCurrentUser();
if($user) {
$userProducer = $userProducerManager->findOneUserProducer($user, $producer);
if (!$userProducer) {

Laddar…
Avbryt
Spara