Bug #31711
closedMultiple FORM Elements on the same page
100%
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
Updated by Niki Mueller about 13 years ago
I worked out a better solution for this Bug.
The following patch changes the arrays $rules, $messages and $errors in the Tx_Form_System_Validate class, using the current
form-prefix as key, allowing for validation of several different forms on one page.
Updated by Mr. Hudson about 13 years ago
- Status changed from New to Under Review
Patch set 1 of change If4842a77fd7bfb3da62dbc3d79de01be88c708fd has been pushed to the review server.
It is available at http://review.typo3.org/6624
Updated by Mr. Hudson about 13 years ago
Patch set 2 of change If4842a77fd7bfb3da62dbc3d79de01be88c708fd has been pushed to the review server.
It is available at http://review.typo3.org/6624
Updated by Niki Mueller about 13 years ago
Uploaded new Patch-Set because of redundant whitespaces.
Updated by Mr. Hudson about 13 years ago
Patch set 3 of change If4842a77fd7bfb3da62dbc3d79de01be88c708fd has been pushed to the review server.
It is available at http://review.typo3.org/6624
Updated by Mr. Hudson about 13 years ago
Patch set 4 of change If4842a77fd7bfb3da62dbc3d79de01be88c708fd has been pushed to the review server.
It is available at http://review.typo3.org/6624
Updated by Xavier Perseguers almost 13 years ago
- Target version changed from 4.6.1 to 4.6.2
Updated by Gerrit Code Review almost 13 years ago
Patch set 5 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/6624
Updated by Gerrit Code Review almost 13 years ago
Patch set 6 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/6624
Updated by Gerrit Code Review almost 13 years ago
Patch set 7 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/6624
Updated by Xavier Perseguers almost 13 years ago
- Target version deleted (
4.6.2)
Updated by Gerrit Code Review almost 13 years ago
Patch set 1 for branch TYPO3_4-6 has been pushed to the review server.
It is available at http://review.typo3.org/8920
Updated by Niki Mueller almost 13 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 04b87281e596bb73b9e80e63652ceaa49ac3ec4a.