Bug #69514
closedTCA, several "renderMode = Tree" in one tca
0%
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
Updated by andreas no-lastname-given about 9 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
Updated by Sergej Junker about 9 years ago
Thanks for your tutorial. It helped me a lot to fix it on my site.
Updated by Riccardo De Contardi over 8 years ago
- Category set to FormEngine aka TCEforms
Updated by Tymoteusz Motylewski about 8 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.