Issue Bug Closed

#70473Flexform : select field using rendermode=tree in a section

Antoine Bouet 10/07/15, 17:53 updated 10/21/17, 17:43

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 …

Reviews 2