[BUGFIX] Validation for multiple forms on one page
authorNiki Mueller <mueller@flagbit.de>
Fri, 11 Nov 2011 13:25:59 +0000 (14:25 +0100)
committerTolleiv Nietsch <info@tolleiv.de>
Thu, 9 Feb 2012 00:18:57 +0000 (01:18 +0100)
commit04b87281e596bb73b9e80e63652ceaa49ac3ec4a
tree93ee40ad1c73c2d441dbdd440c91ab1fce1a3345
parentff7fd848f91459fb714a247c75b29d868fa55475
[BUGFIX] Validation for multiple forms on one page

Since the class tx_form_System_Validate is a singleton, it was not
possible to use more than one form on a page. This patch changes
the arrays $rules, $messages and $errors, using the current form-
prefix as key, allowing for validation of several different forms
on one page.

Change-Id: If4842a77fd7bfb3da62dbc3d79de01be88c708fd
Fixes: #31711
Releases: 4.7, 4.6
Reviewed-on: http://review.typo3.org/6624
Reviewed-by: Philipp Gampe
Tested-by: Philipp Gampe
Reviewed-by: Frederic Gaus
Tested-by: Frederic Gaus
Reviewed-by: Tolleiv Nietsch
Tested-by: Tolleiv Nietsch
typo3/sysext/form/Classes/System/Validate/Validate.php