Actions
Bug #70473
closedFlexform : select field using rendermode=tree in a section
Status:
Closed
Priority:
Must have
Assignee:
Category:
FormEngine aka TCEforms
Target version:
Start date:
2015-10-07
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
7
PHP Version:
5.6
Tags:
Complexity:
Is Regression:
No
Sprint Focus:
Description
If you define a select field as renderMode=Tree in a section of a flexform, there's an error :
Invalid argument supplied for foreach() in typo3/sysext/backend/Classes/Form/Element/SelectTreeElement.php line 51
My solution was :
line 51
- $selectedNodes = ($parameterArray['itemFormElValue']); + $selectedNodes = (empty($parameterArray['itemFormElValue'])) ? array() : $parameterArray['itemFormElValue'];
But I don't know why this array was empty ...
Actions