Issue Bug Closed

#76097FormEngine: group/db broken if select contains optgroup

Andreas Kienast 05/09/16, 17:01 updated 10/02/18, 11:13

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.

Reviews 2