Skip to content

Commit

Permalink
[BUGFIX] Fix undefined array keys
Browse files Browse the repository at this point in the history
  • Loading branch information
PKuhlmay committed Jun 28, 2024
1 parent deb5079 commit 03ddc29
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Classes/Configuration/ExtensionBuilderConfigurationManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -290,17 +290,17 @@ protected function mapAdvancedMode(array $jsonConfig, bool $prepareForModeler =
$module['value']['relationGroup']['relations'][$i]['advancedSettings'] = [];
foreach ($fieldsToMap as $fieldToMap) {
$module['value']['relationGroup']['relations'][$i]['advancedSettings'][$fieldToMap] =
$module['value']['relationGroup']['relations'][$i][$fieldToMap];
$module['value']['relationGroup']['relations'][$i][$fieldToMap] ?? '';
}

$module['value']['relationGroup']['relations'][$i]['advancedSettings']['propertyIsExcludeField'] =
$module['value']['relationGroup']['relations'][$i]['propertyIsExcludeField'];
$module['value']['relationGroup']['relations'][$i]['propertyIsExcludeField'] ?? '';
$module['value']['relationGroup']['relations'][$i]['advancedSettings']['lazyLoading'] =
$module['value']['relationGroup']['relations'][$i]['lazyLoading'];
$module['value']['relationGroup']['relations'][$i]['lazyLoading'] ?? '';
$module['value']['relationGroup']['relations'][$i]['advancedSettings']['relationDescription'] =
$module['value']['relationGroup']['relations'][$i]['relationDescription'];
$module['value']['relationGroup']['relations'][$i]['relationDescription'] ?? '';
$module['value']['relationGroup']['relations'][$i]['advancedSettings']['foreignRelationClass'] =
$module['value']['relationGroup']['relations'][$i]['foreignRelationClass'];
$module['value']['relationGroup']['relations'][$i]['foreignRelationClass'] ?? '';
}
} elseif (isset($module['value']['relationGroup']['relations'][$i]['advancedSettings'])) {
foreach ($fieldsToMap as $fieldToMap) {
Expand Down

0 comments on commit 03ddc29

Please sign in to comment.