Issue Bug Closed

#31711Multiple FORM Elements on the same page

Niki Mueller 11/09/11, 16:17 updated 10/02/18, 12:19

Description

If you have more than one FORM Element on the same page it is not possible to send all of them. Only the first one works.
If you want to send the second one, for example, the rules for the validation are not resetted.
The Problem is that the instance of the Tx_Form_System_Validate is used as singleton as you can see in the setRules function in the form/Classes/Domain/Factory/Typoscript.php class (Line: 361).
If you clean the rules right after this Line it works with several forms on the same page.
My suggestion is to reset the rules array in the constructor of the Tx_Form_System_Validate class.

Best regards,

Niki Müller

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.