Project

General

Profile

Actions

Bug #100797

open

Submitting null to an ObjectStorage Property results in TypeError

Added by Daniel Hoffmann over 1 year ago. Updated over 1 year ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Extbase
Start date:
2023-05-03
Due date:
% Done:

0%

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

Description

When submitting an empty value e.g. from a optional select field, which is stored in a extbase model property of type ObjectStorage<SomeClass>, the ObjectStorageTypeConverter tries to attach null to an ObjectStorage which causes the error "spl_object_hash(): Argument #1 ($object) must be of type object, null given"

Actions #1

Updated by 2eduvu cye1ccfyn over 1 year ago

important information by The error "spl_object_hash(): Argument #1 ($object) must be of type object, null given" is displayed when an empty value, such as one from an optional select field, is submitted and stored in an extbase model property https://beiteck.com/rental of type ObjectStorageSomeClass>.

Actions #2

Updated by Benni Mack over 1 year ago

  • Target version changed from 12 LTS to Candidate for patchlevel
Actions

Also available in: Atom PDF