Pārlūkot izejas kodu

Maintenance #1073

feature/souke
Guillaume Bourgeois pirms 1 gada
vecāks
revīzija
2462c03ebe
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. +2
    -1
      producer/controllers/OrderController.php

+ 2
- 1
producer/controllers/OrderController.php Parādīt failu

@@ -558,12 +558,13 @@ class OrderController extends ProducerBaseController
{
$orderManager = $this->getOrderManager();
$order = $this->getOrderManager()->findOneOrderById($id);
$orderManager->initOrder($order);

if (!$order) {
throw new \yii\web\NotFoundHttpException('Commande introuvable');
}

$orderManager->initOrder($order);

if (!$orderManager->isOrderStateOpen($order)) {
throw new UserException('Vous ne pouvez plus annuler cette commande.');
}

Notiek ielāde…
Atcelt
Saglabāt