[TYPO3-core] RFC #17049: Flexform labels point to wrong checkbox
Ernesto Baschny [cron IT]
ernst at cron-it.de
Tue Jan 18 21:22:11 CET 2011
Steffen Gebert schrieb am 16.01.2011 01:20:
> 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.
+1 by reading and testing.
Committed to trunk rev. 10123.
Cheers,
Ernesto
More information about the TYPO3-team-core
mailing list