Bug #87380

AspectFactory::enrich uses 'class_uses' to check for trait, does not work for inherited classes

Added by Wolfgang Klinger 6 months ago. Updated 6 months ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2019-01-09
Due date:
% Done:

0%

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.

History

#1 Updated by Wolfgang Klinger 6 months ago

  • Description updated (diff)

Also available in: Atom PDF