Skip to content

Commit

Permalink
Merge branch '1.5'
Browse files Browse the repository at this point in the history
* 1.5:
  Update README.md
  Fix of SymfonyForm error
  • Loading branch information
GSadee committed Apr 16, 2024
2 parents 3c002dc + 438215e commit 01b8dbc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
<p align="center">
<a href="https://sylius.com" target="_blank">
<img src="https://sylius.com/assets/logo/sylius-logo-800.png" width="200" />
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://media.sylius.com/sylius-logo-800-dark.png">
<source media="(prefers-color-scheme: light)" srcset="https://media.sylius.com/sylius-logo-800.png">
<img alt="Sylius Logo." src="https://media.sylius.com/sylius-logo-800.png">
</picture>
</a>
</p>
<br/>
Expand Down
2 changes: 1 addition & 1 deletion src/Controller/PayPalOrderItemController.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,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 01b8dbc

Please sign in to comment.