Skip to content

Commit

Permalink
CC-11780 Fix condition
Browse files Browse the repository at this point in the history
  • Loading branch information
AsonUnique committed Nov 20, 2020
1 parent 3042703 commit b0c5d76
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ protected function executeQuickOrderFormSubmitAction(Request $request)
->getQuickOrderForm($quickOrderTransfer)
->handleRequest($request);

if ($quickOrderForm->isSubmitted() && !$quickOrderForm->isValid()) {
if (!$quickOrderForm->isSubmitted() || !$quickOrderForm->isValid()) {
foreach ($quickOrderForm->getErrors(true) as $formError) {
$this->addErrorMessage($formError->getMessage());
}
Expand Down

0 comments on commit b0c5d76

Please sign in to comment.