Skip to content
Snippets Groups Projects
Commit bcdd7b16 authored by Chris Müller's avatar Chris Müller Committed by Christian Kuhn
Browse files

[BUGFIX] Avoid undefined array key "updateReferenceIndex" in Extbase

Resolves: #98580
Releases: main, 11.5
Change-Id: Ib3ee06cb2849efd8e4cf18fc2497f3c0fed0f752
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/76059


Reviewed-by: default avatarOliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
parent 3900b1ea
Branches
Tags
No related merge requests found
......@@ -648,7 +648,7 @@ class Backend implements BackendInterface, SingletonInterface
$this->eventDispatcher->dispatch(new EntityAddedToPersistenceEvent($object));
}
$frameworkConfiguration = $this->configurationManager->getConfiguration(ConfigurationManagerInterface::CONFIGURATION_TYPE_FRAMEWORK);
if ($frameworkConfiguration['persistence']['updateReferenceIndex'] === '1') {
if (($frameworkConfiguration['persistence']['updateReferenceIndex'] ?? '') === '1') {
$this->referenceIndex->updateRefIndexTable($dataMap->getTableName(), $uid);
}
$this->session->registerObject($object, $uid);
......@@ -887,7 +887,7 @@ class Backend implements BackendInterface, SingletonInterface
$this->removeRelatedObjects($object);
$frameworkConfiguration = $this->configurationManager->getConfiguration(ConfigurationManagerInterface::CONFIGURATION_TYPE_FRAMEWORK);
if ($frameworkConfiguration['persistence']['updateReferenceIndex'] === '1') {
if (($frameworkConfiguration['persistence']['updateReferenceIndex'] ?? '') === '1') {
$this->referenceIndex->updateRefIndexTable($tableName, $object->getUid());
}
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment