Skip to content

Commit ecce817

Browse files
committed
Add original logic (has/all) back
1 parent 749528a commit ecce817

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/Symfony/Component/Form/Extension/HttpFoundation/HttpFoundationRequestHandler.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,14 @@ public function handleRequest(FormInterface $form, mixed $request = null)
6262
} else {
6363
$missingData = $this->missingDataHandler->missingData;
6464

65-
if ($missingData === $data = $this->missingDataHandler->handle($form, $request->query->get($name) ?? $missingData)) {
65+
if ($request->query->has($name)) {
66+
$data = $request->query->all()[$name];
67+
}
68+
else {
69+
$data = $missingData;
70+
}
71+
72+
if ($missingData === $data = $this->missingDataHandler->handle($form, $data)) {
6673
// Don't submit GET requests if the form's name does not exist
6774
// in the request
6875
return;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy