Actions
Bug #89523
openEpic #90129: [Extbase] Issues regarding hidden or deleted records
Hidden records are not found when explicitly enabled
Status:
Accepted
Priority:
Should have
Assignee:
-
Category:
Extbase
Target version:
-
Start date:
2019-10-28
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
10
PHP Version:
Tags:
hidden,setIgnoreEnableFields
Complexity:
medium
Is Regression:
No
Sprint Focus:
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
Actions