Bug #76097
closedFormEngine: group/db broken if select contains optgroup
100%
Description
The select box rendered by group/db only contains option tags by default. However, if the hook ['t3lib/class.t3lib_tceforms.php']['dbFileIcons']
manipulates the $selector (the generated HTML code of the select tag) and renders optgroups, all stored elements get removed, if new values are added to that field.
The issue is that the JavaScript gets all options by using $select.children('option')
, causing all values in optgroup getting removed.
Files
Updated by Gerrit Code Review almost 9 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/48044
Updated by Gerrit Code Review almost 9 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/48044
Updated by Gerrit Code Review over 8 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/48044
Updated by Andreas Kienast over 8 years ago
- File dbicons_optgroup.zip dbicons_optgroup.zip added
I've attached a test extension to test the patch. This extension requires "styleguide". The extension manipulates the field "group_db_1" found in "Form engine elements - group" and adds optgroups.
Updated by Gerrit Code Review over 8 years ago
Patch set 1 for branch TYPO3_7-6 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/48209
Updated by Andreas Fernandez over 8 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 26a7a3044838fd62f11d74d19caa0279038c2634.