Bug #24143
closedtcatree: strange behaviour with appearance->expandAll
0%
Description
2 issues with the current tree:
1st) If "'expandAll' => TRUE," is set, the tree is not expanded but collapsed. Maybe it would be better to have same naming scheme as IRRE with collapseAll ?
2nd) If the tree is collpsed from the beginning, no records are shown and the "+" sign is not visible. If I click with a double click and then with a single click (sic!) on the dotted lines in front of the header icon, the plus/minus sign appears and the tree opens. See screenshot
Tree configuration:
'parentcategory' => array(
'exclude' => 0,
'l10n_mode' => 'exclude',
'label' => $ll . 'tx_news2_domain_model_category.parentcategory',
'config' => array(
'type' => 'select',
'foreign_table' => 'tx_news2_domain_model_category',
'renderMode' => 'tree',
'subType' => 'db',
'treeConfig' => array(
'parentField' => 'parentcategory',
'appearance' => array(
'expandAll' => TRUE,
'showHeader' => TRUE,
),
),
'size' => 10,
'autoSizeMax' => 20,
'minitems' => 0,
'maxitems' => 1
)
),
(issue imported from #M16683)
Files