Explorar el Código

Autoriser la commande par administrateur

feature/export_comptable
Fab hace 4 años
padre
commit
104348361c
Se han modificado 2 ficheros con 2 adiciones y 1 borrados
  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 fichero

@@ -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 fichero

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


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

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

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

Cargando…
Cancelar
Guardar