[BUGFIX] Avoid JS error when adding flexform sections 39/44539/3
authorWouter Wolters <typo3@wouterwolters.nl>
Wed, 4 Nov 2015 18:53:12 +0000 (19:53 +0100)
committerMorton Jonuschat <m.jonuschat@mojocode.de>
Wed, 4 Nov 2015 19:45:51 +0000 (20:45 +0100)
commit77b3837e5cd6045c3b7dc4cb3e648f6ed5aabda3
tree36790415665f6c5255e57f30cefd9c7497ed67f1
parent9e6a41c9984e3ac4fc028a25c9b94c9bf298ace4
[BUGFIX] Avoid JS error when adding flexform sections

Within #70473 the ExtJS tree is instantiated for new sections.
$treeElementIdentifier can be undefined but still code is added
to be executed. Prevent this by adding an empty check.

Related: #70473
Resolves: #71327
Releases: master
Change-Id: Ia87329ac35404acedded22f412b88ca155c1ba2e
Reviewed-on: https://review.typo3.org/44539
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Reviewed-by: Juan Manuel Vergés Solanas <juanmanuel.vergessolanas@gmail.com>
Tested-by: Juan Manuel Vergés Solanas <juanmanuel.vergessolanas@gmail.com>
Reviewed-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Tested-by: Morton Jonuschat <m.jonuschat@mojocode.de>
typo3/sysext/backend/Classes/Form/Container/FlexFormSectionContainer.php