瀏覽代碼

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…
取消
儲存