-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Search.Prg killing request data #31
Comments
You could probably just check on put or post (and maybe even patch) here. |
This is why the example code in readme shows to load the component only for index action 😉 |
Querystring is set to |
This also kills the delete method if it's active in the controller, as it redirects the request meaning your delete is |
Removed the example where the component isn't wrapped in a check for an action.
What I did
Added the
Search.Prg
component to myAppController
.What I expected to happen
I could save an edit form and the data would be saved and updated.
What actually happened
The form said it saved, yet no change to the data occurred.
How I fixed it
I removed the
Search.Prg
component and my form saved and updated as expected.What I think the problem is
https://github.com/FriendsOfCake/search/blob/master/src/Controller/Component/PrgComponent.php#L20
An edit action is
put
, so this will wipe out the request data.The text was updated successfully, but these errors were encountered: