Index: src/GXMainComponents/Controllers/HttpView/Admin/ContentManager/ContentManagerElementsController.inc.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- src/GXMainComponents/Controllers/HttpView/Admin/ContentManager/ContentManagerElementsController.inc.php (revision 7c7273b4fe1afbfff3fc33b1cad9aafe7a156ee1) +++ src/GXMainComponents/Controllers/HttpView/Admin/ContentManager/ContentManagerElementsController.inc.php (date 1588165724594) @@ -1,9 +1,9 @@ languageProvider->getCodeById(new IdType($elementsDataDataSet['languages_id'])) ->asString(); foreach ($elementsDataDataSet as $field => $value) { - $contentManagerData[$field][$languageCode] = $value; - } - } - - $contentType = isset($elementsDataDataSet) ? str_replace('elements_', - '', - $elementsDataDataSet['content_position']) : 'start'; + if (!empty($elementsDataDataSet['content_position'])) { + $contentType = !empty($elementsDataDataSet['content_position']) ? str_replace('elements_', + '', + $elementsDataDataSet['content_position']) : 'start'; + } + $contentManagerData[$field][$languageCode] = $value; + } + } + if(empty($contentType)) $contentType = "start"; + $contentManagerData['elements-content']['form_action'] = 'admin.php?do=ContentManagerElements/update&id=' . $contentId . '&type=' . $contentType; $contentManagerData['elements-script']['form_action'] = 'admin.php?do=ContentManagerElements/update&id=' @@ -693,4 +696,4 @@ 'styleEdit' => $styleEdit ]; } -} \ No newline at end of file +}