Skip to content

Commit

Permalink
order can now be completed when successfull flash message exists (#1644)
Browse files Browse the repository at this point in the history
  • Loading branch information
pk16011990 authored Jul 3, 2020
1 parent 0b08846 commit 9c18322
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Controller/Front/OrderController.php
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ public function indexAction()
if ($isValid) {
if ($orderFlow->nextStep()) {
$form = $orderFlow->createForm();
} elseif ($this->isFlashMessageBagEmpty()) {
} elseif (count($this->getErrorMessages()) === 0 && count($this->getInfoMessages()) === 0) {
$deliveryAddress = $orderData->deliveryAddressSameAsBillingAddress === false ? $frontOrderFormData->deliveryAddress : null;
$order = $this->orderFacade->createOrderFromFront($orderData, $deliveryAddress);
$this->orderFacade->sendHeurekaOrderInfo($order, $frontOrderFormData->disallowHeurekaVerifiedByCustomers);
Expand Down

0 comments on commit 9c18322

Please sign in to comment.