8000 [5.5] Fix form method of hidden input '_method' is preserved on next … · LaravelCollective/html@33984f5 · GitHub 8000
[go: up one dir, main page]

Skip to content

Commit 33984f5

Browse files
tortuetorchetshafer
authored andcommitted
[5.5] Fix form method of hidden input '_method' is preserved on next request (#505)
This fix was merged in the pull request #460 But the pull request #471 accidentally revert this fix
1 parent b79edc7 commit 33984f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/FormBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1183,7 +1183,7 @@ public function getValueAttribute($name, $value = null)
11831183
}
11841184

11851185
$request = $this->request($name);
1186-
if (! is_null($request)) {
1186+
if (! is_null($request) && $name !== '_method') {
11871187
return $request;
11881188
}
11891189

0 commit comments

Comments
 (0)
0