Project

General

Profile

Actions

Bug #69514

closed

TCA, several "renderMode = Tree" in one tca

Added by andreas no-lastname-given over 8 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
FormEngine aka TCEforms
Target version:
-
Start date:
2015-09-03
Due date:
% Done:

0%

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

Description

if i use more than one select in a tca with "renderMode = tree", only the first "tree" is rendered as tree. the others are empty.

the issue is according to TYPO3 7.4

Actions #1

Updated by andreas no-lastname-given over 8 years ago

can be fixed if you make the name unique in

typo3/sysext/backend/Classes/Form/Element/SelectSingleElement.php

line 174. in this line the function "addJsInlineCode" is called but the name in this case is always the same like 'treefoo'. in the function "addJsInlineCode" is written

"if (!isset($this->jsInline[$name])" - i guess this name exists with the second tree and so it will not work.

you can fix it, if you add the id in line 174 from SelectSingleElement like

$pageRenderer->addJsInlineCode('treefoo' . $id,'...

to make it unique

Actions #2

Updated by Sergej Junker over 8 years ago

Thanks for your tutorial. It helped me a lot to fix it on my site.

Actions #3

Updated by Riccardo De Contardi almost 8 years ago

  • Category set to FormEngine aka TCEforms
Actions #4

Updated by Tymoteusz Motylewski over 7 years ago

  • Status changed from New to Closed

Before the 7.6 release the formengine was refactored. And the issue should be fixed already.
I'm closing the issue. If you don't agree, please leave a comment.

Actions

Also available in: Atom PDF