Open
Description
Describe the bug
Saving an extension fails with the error message that a key is not defined.
This is due to missing check in the ConfigurationManager.
I'm not sure if the scenario is important:
I've created an extension and overwrote it several times but without enabled round-trip-mode (this was no fault but my intention, as the reoundtrip mode has some own issues in different locations).
Expected behavior
That saving can happen without error message and interruption.
TYPO3 Version
v11
Extension Builder Version:
v11
Additional context
The attached patch adds a variable-check.
Sorry, upload doesn't work here, so as code:
--- Classes/Configuration/ExtensionBuilderConfigurationManager.php.original 2023-12-31 22:31:45.519193871 +0700
+++ Classes/Configuration/ExtensionBuilderConfigurationManager.php 2023-12-31 22:31:43.079104601 +0700
@@ -428,7 +428,8 @@
return $result;
}
- if ($modules[$supposedModuleIndex]['value']['relationGroup']['relations'][$supposedRelationIndex]['uid'] === $uid) {
+ if (!empty($modules[$supposedModuleIndex]['value']['relationGroup']['relations'][$supposedRelationIndex]['uid'])
+ && $modules[$supposedModuleIndex]['value']['relationGroup']['relations'][$supposedRelationIndex]['uid'] === $uid) {
$result['terminal'] = 'relationWire_' . $supposedRelationIndex;
return $result;
}