Преглед на файлове

Autoriser la commande par administrateur

feature/export_comptable
Fab преди 4 години
родител
ревизия
104348361c
променени са 2 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. +1
    -1
      ShopBundle/Controller/Backend/OrderController.php
  2. +1
    -0
      ShopBundle/Resources/views/backend/order/edit-cart.html.twig

+ 1
- 1
ShopBundle/Controller/Backend/OrderController.php Целия файл

@@ -242,7 +242,7 @@ class OrderController extends AdminController
if ($formOrderStatus->isSubmitted() && $formOrderStatus->isValid()) {
$oldStatus = $orderShop->getOrderStatus();

$orderShop = $this->orderUtils->changeOrderStatus($formOrderStatus->get('orderStatus')->getData(), $orderShop);
$orderShop = $this->orderUtils->changeOrderStatus($formOrderStatus->get('orderStatus')->getData(), $orderShop, true);
if ($oldStatus !== $orderShop->getOrderStatus()) {
$this->utils->addFlash('success', 'success.order.changeStatus');
}

+ 1
- 0
ShopBundle/Resources/views/backend/order/edit-cart.html.twig Целия файл

@@ -19,6 +19,7 @@


{{ macros.startCard(12, 'OrderShop.resume') }}

{% include '@LcShop/backend/order/form/card_orderproducts.html.twig' %}

{{ macros.cardOverlay('isLoading') }}

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