Issue Bug Closed

#52469ViewHelper not usable with own Models

Benjamin Serfhos 10/02/13, 14:21 updated 10/02/18, 12:10

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) {

Reviews 3