[TYPO3-core] RFC #17049: Flexform labels point to wrong checkbox

Steffen Gebert steffen at steffen-gebert.de
Sun Jan 16 01:20:06 CET 2011


Hi!

This is a SVN patch request.

Type: Bugfix

Bugtracker reference:
http://bugs.typo3.org/view.php?id=17049

Branches:
trunk

Problem:
All checkboxes in FlexForms have id="_0". This leads to the problem that 
the <label for="_0"> is not unique, if the FlexForm contains more than 
one checkbox.
This is probably not new, but visible due to the used <label>s in 4.5.

Solution:
Reason is that $PA['itemFormElID'] in 
t3lib_TCEforms::getSingleField_typeCheck() is undefined.
The $PA parameter array for flexforms created in 
t3lib_TCEforms_Flexforms::modifySingleFlexFormSheet(), using $fakePA as 
variable name.
Using the itemFormElName also as itemFormElID solves this issue and 
makes IDs unique also in FlexForms.

How to test:
Insert fe_login plugin.
Click on the 3rd Enabled <label>, the 1st Checkbox is toggled.

Kind regards
Steffen

-- 
Steffen Gebert
TYPO3 Core Team Member
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 17049.diff
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20110116/c4bc01d9/attachment-0001.asc>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screen shot 2011-01-15 at 02.11.13.png
Type: image/png
Size: 27303 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20110116/c4bc01d9/attachment-0001.png>


More information about the TYPO3-team-core mailing list