Project

General

Profile

Actions

Bug #78628

closed

Story #69617: FormEngine bugs

selectTree pageTsConfig addItems broken

Added by Christian Kuhn over 7 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2016-11-09
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
hard
Is Regression:
No
Sprint Focus:

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.


Files

tree-viewport-2.png (20.3 KB) tree-viewport-2.png Christian Kuhn, 2016-11-11 16:43

Related issues 3 (0 open3 closed)

Related to TYPO3 Core - Bug #70956: Behavior of keepItems changedClosedMorton Jonuschat2015-10-22

Actions
Related to TYPO3 Core - Task #78744: TCA tree refactoringClosed2016-11-18

Actions
Related to TYPO3 Core - Bug #78747: pageTsConfig addItems still brokenClosed2016-11-18

Actions
Actions

Also available in: Atom PDF