Skip to content

Commit

Permalink
Merge pull request FluidTYPO3#1059 from mneuhaus/bugfix/tceforms-wrap…
Browse files Browse the repository at this point in the history
…ping

[BUGFIX] Prevent duplicate tceforms wrapping
  • Loading branch information
jmverges committed Jan 7, 2016
2 parents bf5035b + b3082b3 commit aacde34
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Classes/Backend/DynamicFlexForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,13 @@ public function getFlexFormDS_postProcessDS(&$dataStructArray, $conf, &$row, $ta
* @param array $dataStructure
* @return array
*/
protected function patchTceformsWrapper(array $dataStructure) {
protected function patchTceformsWrapper(array $dataStructure, $parentIndex = NULL) {
foreach ($dataStructure as $index => $subStructure) {
if (is_array($subStructure)) {
$dataStructure[$index] = $this->patchTceformsWrapper($subStructure);
$dataStructure[$index] = $this->patchTceformsWrapper($subStructure, $index);
}
}
if (isset($dataStructure['config']) && !isset($dataStructure['TCEforms'])) {
if (isset($dataStructure['config']) && $parentIndex !== 'TCEforms') {
$dataStructure = array('TCEforms' => $dataStructure);
}
return $dataStructure;
Expand Down

0 comments on commit aacde34

Please sign in to comment.