Bug #91996
openforms ignores the attribute "action" completely (method: get) - example_ext included
0%
Description
TYPO3 10.4.6
I would like to filter the pagination
For this purpose, I have created a form in the FLUID template, which should be sent to a "filterView".
- Parameters should remain in the URL, therefore method="GET".
- Form action="filter".
- Controller has the method "filterAction()".
- ext_localconf.php -> configurePlugin the "filterAction" is not(!) allowed.
Expectation: TYPO3 returns error message that "the filterAction is not allowed with this plugin...".
Unfortunately, the server gives me an error message directly (Forbidden) or the action is not called at all and the page (FE) refreshes itself only without forwarding and without error message:
Original fluid-form with "GET" breaks completely with server-error "forbidden".
Then I tried custom form viewhelper as described here:
https://www.ophidia.net/fluid-fform-referrer-deaktivieren/
doesn't work either, unfortunately.
Also with a pure HTML-form-tag with action="f:uri.action..." does not work.
So after texting in slack and after creating an example_extension (see appendix), I found a workaround by simply adding a "hidden-field" name="action" value="filter". Then the "forms" work as they should.
That is, the form attribute "action" seems to be completely ignored...
----------------
Example ext has some forms which shows the problem.
The filterAction has a "die()" in it - to see if it works or not.
Add TS to your PageTemplate and put the listView of that ext on a page.
At the List.html Template there are some comments.
----------------
Example ext available at https://github.com/Teisi/test_form ,too.
Files
No data to display