Project

General

Profile

Bug #78628

Updated by Christian Kuhn over 7 years ago

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, 

 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 = json[0]; 
 } 

 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. 

Back