Skip to content

Commit

Permalink
[BUGFIX] Undefined array key (#732)
Browse files Browse the repository at this point in the history
* Undefined array key

After deleting a relation wire I got this error:
Extension could not be saved: PHP Warning: Undefined array key 22 in /html/typo3/typo3conf/ext/extension_builder/Classes/Configuration/ExtensionBuilderConfigurationManager.php line 431

* Update Classes/Configuration/ExtensionBuilderConfigurationManager.php

Co-authored-by: David Bruchmann <[email protected]>

---------

Co-authored-by: Philipp Kuhlmay <[email protected]>
Co-authored-by: David Bruchmann <[email protected]>
  • Loading branch information
3 people authored Mar 24, 2024
1 parent 2e1e969 commit aa7bca8
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,10 @@ protected function findModuleIndexByRelationUid(
return $result;
}

if ($modules[$supposedModuleIndex]['value']['relationGroup']['relations'][$supposedRelationIndex]['uid'] === $uid) {
if (
isset($modules[$supposedModuleIndex]['value']['relationGroup']['relations'][$supposedRelationIndex]['uid'])
&& $modules[$supposedModuleIndex]['value']['relationGroup']['relations'][$supposedRelationIndex]['uid'] === $uid
) {
$result['terminal'] = 'relationWire_' . $supposedRelationIndex;
return $result;
}
Expand Down

0 comments on commit aa7bca8

Please sign in to comment.