Actions
Bug #52469
closedViewHelper not usable with own Models
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Content Rendering
Target version:
-
Start date:
2013-10-02
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
6.1
PHP Version:
Tags:
Complexity:
easy
Is Regression:
No
Sprint Focus:
Description
\TYPO3\CMS\Beuser\ViewHelpers\SpriteIconForRecordViewHelper uses following code if the parsed class is a BackendUser model.
if ($table === 'be_users' && get_class($object) === 'TYPO3\\CMS\\Beuser\\Domain\\Model\\BackendUser') {
This should use the instanceof lookup to make it possible to use it out of the box.
if ($table === 'be_users' && $object instanceof \TYPO3\CMS\Beuser\Domain\Model\BackendUser) {
Actions