Project

General

Profile

Actions

Bug #100774

closed

Fluid Select ViewHelper getIdentifierByObject failes

Added by Marc Hirdes about 1 year ago. Updated about 1 year ago.

Status:
Resolved
Priority:
Should have
Assignee:
-
Category:
Fluid
Target version:
Start date:
2023-04-28
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
12
PHP Version:
8.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

In the Fluid Select ViewHelper line 238 the call of $this->persistenceManager->getIdentifierByObject misses a check if the $value is an object.

} elseif ($this->persistenceManager->getIdentifierByObject($value) !== null) {

It also could be an array. If so, then an error is shown.

The fix would be:

} elseif (is_object($value) && $this->persistenceManager->getIdentifierByObject($value) !== null) {

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Task #100790: Provide meaningful error messages for misconfigured SelectViewHelperClosed2023-05-02

Actions
Actions

Also available in: Atom PDF