categories update hook rebuild scope

This commit is contained in:
Yurii
2026-02-26 09:53:02 +02:00
parent 145e521bd5
commit 198b9c78fc
@@ -154,7 +154,8 @@ class CategoriesUpdateHook implements UpdateHook
]);
$this->metadata->save();
$this->dataManager->rebuild();
$this->dataManager->rebuild([$entityType]);
$this->dataManager->rebuild([$name]);
$this->layoutCustomizer->addDetailField($name, self::FIELD, LayoutName::DETAIL);
$this->layoutCustomizer->addDetailField($name, self::FIELD, LayoutName::DETAIL_SMALL);
@@ -185,7 +186,8 @@ class CategoriesUpdateHook implements UpdateHook
]);
$this->metadata->save();
$this->dataManager->rebuild();
$this->dataManager->rebuild([$entityType]);
$this->dataManager->rebuild([$name]);
$this->layoutCustomizer->removeInDetail($name, self::FIELD, LayoutName::DETAIL);
$this->layoutCustomizer->removeInDetail($name, self::FIELD, LayoutName::DETAIL_SMALL);