Skip to content

Commit

Permalink
OP-264 Merge pull request #233 from oallain/patch-1
Browse files Browse the repository at this point in the history
Fix form error
  • Loading branch information
SzymonKostrubiec authored Apr 18, 2024
2 parents ef7c5d1 + 90f3c28 commit 6c54783
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Controller/Action/Shop/ListProductsAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public function __invoke(Request $request): Response
['slug' => $request->get('slug')]
);

if (!$form->isValid()) {
if ($form->isSubmitted() && !$form->isValid()) {
$requestData = $this->clearInvalidEntries($form, $requestData);
}

Expand Down

0 comments on commit 6c54783

Please sign in to comment.