contao/import — Issue #3591: Group labels don't get loaded
Author: importer
Created: 2011-11-29 21:51:37+00:00
State: open
Labels: backend, Defect

Hello,

group labels don't get loaded in backend's list view with 'options' and corresponding language array 'reference'.
As group headers the values of the field appear instead of the language-adapted labels for those values.

Example:

i use the filed 'type' for sorting/grouping in list
`
'sorting' => array
(
'mode' => 1,
'fields' => array('type'),
'flag' => 1,
'panelLayout' => 'search,limit'
),
`

with this field definition:
`
'type' => array
(
'label' => &$GLOBALS['TL_LANG']['tl_rb_applications']['type'],
'default' => 'J',
'inputType' => 'select',
'options' => array('I', 'J'),
'reference' => &$GLOBALS['TL_LANG']['tl_rb_applications']['type_options'],
'eval' => array('mandatory'=>true)
)
`

and this label definition:
`
$GLOBALS['TL_LANG']['tl_rb_applications']['type_options'] = array('I' => 'initiative', 'J' => 'job-based');
`

I attached a patch für drivers/DC_Table.php to correct the problem.

regards
Florian

[Download the attachments](http://www.contao.org/tl_files/tickets/3591.zip "Download the attachments of this ticket")

--- _Originally created by heyho on October 31st, 2011, at 08:17pm (ID 3591)_