Skip to content

[BUG] 🐛 saving fails with error message #684

Open
@DavidBruchmann

Description

@DavidBruchmann

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;
         }

Metadata

Metadata

Assignees

No one assigned

    Labels

    TYPO3 11bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions