From 198b9c78fcacf6fdf07a49a3e20fe7bae10d5b30 Mon Sep 17 00:00:00 2001 From: Yurii Date: Thu, 26 Feb 2026 09:53:02 +0200 Subject: [PATCH] categories update hook rebuild scope --- .../Tools/EntityManager/Hook/Hooks/CategoriesUpdateHook.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/application/Espo/Tools/EntityManager/Hook/Hooks/CategoriesUpdateHook.php b/application/Espo/Tools/EntityManager/Hook/Hooks/CategoriesUpdateHook.php index f6702466be..46e6420257 100644 --- a/application/Espo/Tools/EntityManager/Hook/Hooks/CategoriesUpdateHook.php +++ b/application/Espo/Tools/EntityManager/Hook/Hooks/CategoriesUpdateHook.php @@ -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);