Skip to content

Commit

Permalink
Fix of SymfonyForm error
Browse files Browse the repository at this point in the history
  • Loading branch information
oallain authored Nov 22, 2023
1 parent fbf7c92 commit 250c404
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Controller/PayPalOrderItemController.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function createFromProductDetailsAction(Request $request): Response

$form = $form->handleRequest($request);

if (!$form->isValid()) {
if ($form->isSubmitted() && !$form->isValid()) {
return new RedirectResponse((string) $request->headers->get('referer'));
}

Expand Down

0 comments on commit 250c404

Please sign in to comment.