Issue Bug Closed

#91143Datahandler should check return value of checkStoredRecord

Tymoteusz Motylewski 04/20/20, 13:39 updated 07/29/25, 21:54

Description

In datahandler isertDB the return value of checkStoredRecord is not being checked (if it’s null or array) which then results in calling

$this->getRecordHistoryStore()->addRecord($table, $id, $newRow);

with a wrong type (null) for $newRow.

This causes error like:

Argument 3 passed to TYPO3\CMS\Core\DataHandling\History\RecordHistoryStore::addRecord() must be of the type array, null given,

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.