Bug #69514
closed
TCA, several "renderMode = Tree" in one tca
Added by andreas no-lastname-given about 9 years ago.
Updated about 8 years ago.
Category:
FormEngine aka TCEforms
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
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
Thanks for your tutorial. It helped me a lot to fix it on my site.
- Category set to FormEngine aka TCEforms
- 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.
Also available in: Atom
PDF