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

Jeff Segars jsegars at alumni.rice.edu
Tue Jan 18 17:20:33 CET 2011


On 1/15/11 6:20 PM, Steffen Gebert wrote:
> 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

+1 on reading and testing.

Thanks,
Jeff


More information about the TYPO3-team-core mailing list