Bug #23547
closedIRRE: Foreign selector ignores optgroups in selectboxes
0%
Description
Szenario:
I am usign a tca field of type inline with the configuration
'type' => 'inline',
'foreign_table' => 'tx_XXX_domain_model_example',
'foreign_selector' => 'example_field',
'MM' => 'tx_XXX_domain_model_example_mm',
with foreign selector on a field example_field configured like this
'type' => 'select',
'items' => array(
array('A','--div--'),
array('1','A1'),
array('2','A2'),
array('3','A3'),
array('B','--div--'),
array('1','B1'),
array('2','B2'),
array('3','B3'),
),
Problem:
t3lib_TCEforms_inline renders all items including the dividers in <option> tags.
Solution:
Adopt the selectbox rendering from t3lib_TCEforms.
Attached Patch fixes the Bug.
(issue imported from #M15725)
Files
Updated by Thomas Maroschik about 14 years ago
Just detected a lack of function when foreign_selector is used in conjunction with item icons. There were also wrong references to the parent form object.
Attached patch v2 resolves these bugs and adds "icons below selector" functionality.
Updated by Alexander Opitz about 11 years ago
- Status changed from New to Needs Feedback
- Target version deleted (
0) - Is Regression set to No
Hi,
as this issue is very old. Does the problem still exists within newer versions of TYPO3 CMS (4.5 or 6.1)?
Updated by Alexander Opitz over 10 years ago
- Status changed from Needs Feedback to Closed
No feedback within the last 90 days => closing this ticket.
If you think that this is the wrong decision or experience this issue again, then please write to the mailing list typo3.teams.bugs with issue number and an explanation or open a new ticket and add a relation to this ticket number.