Project

General

Profile

Actions

Bug #70473

closed

Flexform : select field using rendermode=tree in a section

Added by Antoine Bouet over 8 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Must have
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 #1

Updated by Antoine Bouet over 8 years ago

  • Assignee set to Xavier Perseguers

Same problem if I put in the page a plugin which have a categories tree in this flexform.

My solution works but it's just a temporary solution ...

Actions #2

Updated by Xavier Perseguers over 8 years ago

  • Assignee deleted (Xavier Perseguers)

Removing me from the assignment since there is no reason I should be forced to work on it :)

Actions #3

Updated by Antoine Bouet over 8 years ago

Sorry for that, I didn't know the official workflow for the bugs of the core :)

Actions #4

Updated by Morton Jonuschat over 8 years ago

  • Status changed from New to Accepted
Actions #5

Updated by Morton Jonuschat over 8 years ago

  • Status changed from Accepted to In Progress
  • Assignee set to Morton Jonuschat
Actions #6

Updated by Gerrit Code Review over 8 years ago

  • Status changed from In Progress to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/44431

Actions #7

Updated by Morton Jonuschat over 8 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #8

Updated by Riccardo De Contardi over 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF