Project

General

Profile

Actions

Bug #76097

closed

FormEngine: group/db broken if select contains optgroup

Added by Andreas Kienast about 8 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Category:
FormEngine aka TCEforms
Start date:
2016-05-09
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
easy
Is Regression:
No
Sprint Focus:
Remote Sprint

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

dbicons_optgroup.zip (47.8 KB) dbicons_optgroup.zip Andreas Kienast, 2016-05-17 10:18
Actions

Also available in: Atom PDF