fix hooksDisabled

This commit is contained in:
Yuri Kuznetsov
2024-03-03 13:25:54 +02:00
parent 55b1c1511a
commit 687ceca26e
@@ -90,11 +90,11 @@ class Database extends RDBRepository
$this->applicationState = $applicationState;
$this->recordIdGenerator = $recordIdGenerator;
$hooksDisabled = $this->hooksDisabled || $metadata->get("entityDefs.$entityType.hooksDisabled");
$this->hooksDisabled = $this->hooksDisabled || $metadata->get("entityDefs.$entityType.hooksDisabled");
$hookMediator = null;
if (!$hooksDisabled) {
if (!$this->hooksDisabled) {
$hookMediator = new HookMediator($hookManager);
}