[TYPO3-core] RFC #0015731: Bug: TCE_Forms Select & group fields remove item bug

Aske aske at mocsystems.com
Fri Sep 17 13:24:51 CEST 2010


This is an SVN patch request.

Type: Bugfix

Bugtracker references:
http://bugs.typo3.org/bug_view_page.php?bug_id=15731

Branches:
TYPO3_4-4-2 & trunk

Problem:
Having selected multiple items in a group or select field. Then trying to remove a single item results in removing all the items. The problem lies in javascript function setFormValueManipulate in typo3/t3lib/class.t3lib_tceforms.php, on line 5637.

Solution:
The solution is very simple by changing fObjSel.size to fObjSel.length (which is already set as the var "l") in line 5637:
(type=="Remove" && fObjSel.size > 1) to (type=="Remove" && l > 1).
This validates the if if there's more than 1 elements in the selected options.

Can although also just be changed to fObjSel.length if preferred.

Notes:
Patch is made with replacing fObjSel.size with var l. The diff is made inside typo3/t3lib/ comparing the trunk and fixed trunk version.

Aske Ertmann / MOC Systems
aske at mocsystems.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100917/f8f0562d/attachment.htm>


More information about the TYPO3-team-core mailing list