Skip to content

Commit c61d507

Browse files
committed
[BUGFIX] Use correct parents property in SelectTree component
On modernizing tree rendering, internally calculated properties of tree nodes have been changed to start with `__`. This patch adjusts one forgotten occurrence. Resolves: #104052 Releases: main, 13.4 Change-Id: If5072834815b2478139abc8323fb27ca309c53d6 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/84680 Tested-by: core-ci <typo3@b13.com> Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch> Tested-by: Oliver Bartsch <bo@cedev.de> Tested-by: Andreas Kienast <akienast@scripting-base.de> Reviewed-by: Andreas Kienast <akienast@scripting-base.de> Reviewed-by: Oliver Bartsch <bo@cedev.de> Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
1 parent 647cf6e commit c61d507

File tree

2 files changed

+3
-3
lines changed
  • Build/Sources/TypeScript/backend/form-engine/element
  • typo3/sysext/backend/Resources/Public/JavaScript/form-engine/element

2 files changed

+3
-3
lines changed

Build/Sources/TypeScript/backend/form-engine/element/select-tree.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,10 @@ export class SelectTree extends Tree
100100
* Finds and show all parents of node
101101
*/
102102
public showParents(node: any): void {
103-
if (node.parents.length === 0) {
103+
if (node.__parents.length === 0) {
104104
return;
105105
}
106-
const parent = this.nodes[node.parents[0]];
106+
const parent = this.nodes[node.__parents[0]];
107107
parent.__hidden = false;
108108
parent.__expanded = true;
109109
this.showParents(parent);

typo3/sysext/backend/Resources/Public/JavaScript/form-engine/element/select-tree.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)