Actions
Bug #87380
closedAspectFactory::enrich uses 'class_uses' to check for trait, does not work for inherited classes
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Site Handling, Site Sets & Routing
Target version:
-
Start date:
2019-01-09
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
9
PHP Version:
7.2
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
\TYPO3\CMS\Core\Routing\Aspect\AspectFactory::enrich uses 'class_uses' to check for trait,
but this does not work for inherited classes.
So if someone extends e.g. the PersistedJoinMapper this leads to an exception because $this->siteLanguage is not set.
A better solution would be to check if the property 'siteLanguage' exists in the object.
Actions