#22669getExtensionKeyByPrefix() not working for user_-namespace
Description
For extensions in the user-namespace (e.g. ‘user_example’), the arraykey in $extensionKeyMap is the full extensionkey instead of only the non-prefixed part. As result, no real extensionkey is found.
Should be fixed with the following changes:
- $shortKey = str_replace(‘‘, ‘’, $extensionKey);
+ $shortKey = ? substr($extensionKey, 5) : str_replace(’’, ‘’, $extensionKey);
In combination with the scheduler and autoloader this occures “unable to autoload” exceptions for user_*-classes used as AdditionalFieldProvider
(issue imported from #M14409)
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.