Skip to content

Commit

Permalink
[BUGFIX] Restore inline fields
Browse files Browse the repository at this point in the history
  • Loading branch information
nhovratov committed Oct 5, 2020
1 parent 7e30af2 commit d1a9a17
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions Classes/Helper/InlineHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -259,11 +259,11 @@ public function getInlineElements(
if (TYPO3_MODE === 'FE') {
foreach ($rows as $element) {
$GLOBALS['TSFE']->sys_page->versionOL($childTable, $element);
$elements[] = $element;
$elements[$element['uid']] = $element;
}
} else {
foreach ($rows as $element) {
$elements[] = BackendUtility::getRecordWSOL($childTable, $element['uid']);
$elements[$element['uid']] = BackendUtility::getRecordWSOL($childTable, $element['uid']);
}
}

Expand All @@ -272,15 +272,14 @@ public function getInlineElements(
return $a['sorting'] > $b['sorting'];
});

$result = [];
foreach ($elements as $element) {
if ($element && empty($elements[$element['uid']])) {
foreach ($elements as $key => $element) {
if ($element) {
$this->addIrreToData($element, $name, $cType);
$this->addFilesToData($element, $name);
$result[$element['uid']] = $element;
$elements[$key] = $element;
}
}

return $result;
return $elements;
}
}

0 comments on commit d1a9a17

Please sign in to comment.