diff --git a/src/CoreShop/Bundle/ResourceBundle/Form/Extension/HttpFoundation/HttpFoundationRequestHandler.php b/src/CoreShop/Bundle/ResourceBundle/Form/Extension/HttpFoundation/HttpFoundationRequestHandler.php index 6931999ada..785c48f98d 100644 --- a/src/CoreShop/Bundle/ResourceBundle/Form/Extension/HttpFoundation/HttpFoundationRequestHandler.php +++ b/src/CoreShop/Bundle/ResourceBundle/Form/Extension/HttpFoundation/HttpFoundationRequestHandler.php @@ -62,6 +62,10 @@ public function handleRequest(FormInterface $form, $request = null): void if ('GET' === $method || 'HEAD' === $method || 'TRACE' === $method) { if ('' === $name) { $data = $request->query->all(); + // No data - nothing to submit. + if (!count($data)) { + return; + } } else { // Don't submit GET requests if the form's name does not exist // in the request