contao/test — Issue #2370: selector fault
Author: importer
Created: 2011-11-29 09:33:28+00:00
State: open
Labels: Defect, framework, Invalid

Hi Leo,
if I set up a DCA like this

`	// Palettes
'palettes' => array
(
'__selector__' => array('addsubjectimage'),
'default' => 'showit;subject,subjectdescription;{listImageLegend:hide},addsubjectimage'
),
//Sub Palettes
'subpalettes' => array
(
'addsubjectimage' => 'singleSRC,alt,imagesize,fullsize'
),`

and this

`	'addsubjectimage' => array
(
'label' => &$GLOBALS['TL_LANG']['tl_playlistsubject']['addsubjectimage'],
'exclude' => true,
'inputType' => 'checkbox',
'default' => false,
'filter' => true,
'eval' => array('tl_class'=>'long', 'submitOnChange'=>true)

),`

the New Record layout shows an unchecked checkbox (addsubjectimage), but with its contents ('singleSRC,alt,imagesize,fullsize) open to view.
Checking the box reloads the same, still open.
Unchecking it again closes everything as it should.

This makes for a very confusing interface, as the contents ('singleSRC,alt,imagesize,fullsize) should load initially as hidden.
I can't track down why sorry.

--- _Originally created by ramjet on July 30th, 2010, at 05:28am (ID 2370)_