Issue Bug Closed

#78628selectTree pageTsConfig addItems broken

Christian Kuhn 11/09/16, 17:49 updated 10/02/18, 11:05

Description

TCEFORM.tx_styleguide_elements_select.select_tree_1.addItems.staticFromPageTs = 12345

or

TCEFORM.pages.categories.addItems.staticFromPageTs = 12345

does not work anymore since patch for #70956

moving the line

$fieldConfig[‘config’][‘items’] = $this->addItemsFromPageTsConfig($result, $fieldName, $fieldConfig[‘config’][‘items’]);

up again, effectively reverting the change from #70956 with patch https://review.typo3.org/#/c/44570/4, and the additional ts config item is displayed in 7.6 again. This needs some thoughts on the correct solution in 7.6, then.

However, the issue is more severe in master: it seems the svg tree doesn’t handle ‘multiple roots’ at all at the moment, see SvgTree.js ~197:

if (Array.isArray(json)) {
//little hack, so we can use json structure prepared by ExtJsJsonTreeRenderer
json = json0;
}

with additional items, there is [0] and [1] and maybe more. I guess, the other ‘static items’ eg. from TCA [‘config’][‘items’] won’t work either.

Reviews 2