-
-
Notifications
You must be signed in to change notification settings - Fork 106
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
after $form->setAction(), destination presenter throws exception #33
Comments
I wonder what is a use case for this... |
What I observe, the reason for such use case is avoiding session usage. If form handling is made in same presenter session is needed. Maybe replacing UI\Form with Form\Form will enough, I don't know, thank you for tip anyway. The main problem is that use case worked fine in 2.1 and doesn't work in 2.2. We have many forms with setAction and it's time consuming to verify all these places. This is definitely BC break. And finally there is currently (in 2.2+) no sense to use setAction in Ul\Form. Mostly - if another then "this" presenter is used - it doesn't work, throws exception. Solution can be disabling the call setAction in UI\Form anyway or throw exception. I think current behavior needs some adjustment. |
Forum thread about the same issue: http://forum.nette.org/en/20851-huge-bc-break-with-moving-do-parameter-from-url-to-post-data-for-forms-request-do-support-old-functionality |
It this use case you should definitely use |
In version 2.2:
I have PageWithFormPresenter::actionDefault with this code
When form is submitted to destination url, presenter which serves this url (ResultPresenter) throws the BadSignalException with "The signal receiver component 'orderForm' is not found".
This worked without any error in 2.1. It's related to change in form submit url and "do" parameter in POST data, which was introduced in 2.2
The text was updated successfully, but these errors were encountered: