Issue Bug Rejected

#89523Hidden records are not found when explicitly enabled

Michal Majernik 10/28/19, 11:05 updated 04/01/25, 21:14

Description

When ignoreEnableFields is set to true and an action with the hidden record in arguments is called, then an exception is thrown:

Object of type Vendor\Example\Domain\Model\Record with identity "xxx" not found.

To reproduce:

Create a simple controller and an action

public function editAction(Record $record)
{
       //Do staff
}

Create a simple RecordRepository with following initializeObject function

public function initializeObject()
{
       $querySettings = GeneralUtility::makeInstance(Typo3QuerySettings::class);
       $querySettings->setIgnoreEnableFields(true);
       $querySettings->setRespectStoragePage(false);
       $this->setDefaultQuerySettings($querySettings);
}

Redirect to the editAction with a hidden Record

Reviews 0

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