|
|
@@ -170,8 +170,6 @@ class OrderController extends AdminController |
|
|
|
if ($formOrderStatus->isSubmitted() && $formOrderStatus->isValid()) { |
|
|
|
|
|
|
|
if($orderShop = $this->orderUtils->setOrderStatus($formOrderStatus->get('orderStatus')->getData(), $orderShop)){ |
|
|
|
$this->persistEntity($orderShop); |
|
|
|
$this->em->flush(); |
|
|
|
$this->addFlash('success', 'La commande a bien été modifié.'); |
|
|
|
} |
|
|
|
}else{ |
|
|
@@ -243,7 +241,7 @@ class OrderController extends AdminController |
|
|
|
$this->em->persist($orderReductionCart); |
|
|
|
$this->em->flush(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$response['status'] = 'success'; |
|
|
|
$response['message'] = 'La réduction a bien été ajouté'; |
|
|
|
|
|
|
@@ -472,4 +470,4 @@ class OrderController extends AdminController |
|
|
|
]); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |