[TYPO3-core] RFC: #15725: IRRE: Foreign selector ignores optgroups in selectboxes

Thomas Maroschik tmaroschik at dfau.de
Thu Sep 16 15:17:22 CEST 2010


Hi,

This is SVN patch request.

Type: Bugfix

Branches: 4_4, trunk

BT reference: http://bugs.typo3.org/view.php?id=15725

Szenario:
I am using 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.

___________________________
Thomas Maroschik
DFAU
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: typo3core_bugfix_15725_trunk.patch
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100916/1ed1e9f3/attachment.txt>


More information about the TYPO3-team-core mailing list