[BUGFIX] Validation for multiple forms on one page
authorNiki Mueller <mueller@flagbit.de>
Fri, 11 Nov 2011 13:25:59 +0000 (14:25 +0100)
committerXavier Perseguers <xavier@typo3.org>
Tue, 6 Mar 2012 09:18:07 +0000 (10:18 +0100)
commitbc0a1f663ce520e354ec7853b4a4f9e17e544368
tree7796342a430c4ceb6cfb1bc334338d2c3e7e0c6f
parent6ecadd50b8fd6cd5b0279461a48279060c361e8f
[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: I681c509c8884093dfe6ead527d2b44264f433fa6
Fixes: #31711
Releases: 4.7, 4.6
Reviewed-on: http://review.typo3.org/8920
Reviewed-by: Xavier Perseguers
Tested-by: Xavier Perseguers
typo3/sysext/form/Classes/System/Validate/Validate.php