Ver código fonte

Autoriser la commande par administrateur

feature/export_comptable
Fab 4 anos atrás
pai
commit
104348361c
2 arquivos alterados com 2 adições e 1 exclusões
  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 Ver arquivo

@@ -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 Ver arquivo

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


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

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

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

Carregando…
Cancelar
Salvar