Project

General

Profile

Actions

Bug #31711

closed

Multiple FORM Elements on the same page

Added by Niki Mueller about 13 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Form Framework
Target version:
-
Start date:
2011-11-09
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
4.6
PHP Version:
5.3
Tags:
Complexity:
medium
Is Regression:
Sprint Focus:

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


Related issues 1 (0 open1 closed)

Has duplicate TYPO3 Core - Bug #34646: form sysext can't handle more than 1 form with validation per page (with patch)ClosedPatrick Broens2012-03-07

Actions
Actions

Also available in: Atom PDF