Skip to content

EspoCRM – Open Source CRM Application

Remove aclDefs on entity type removal

Yuriifc6363af1d00
diff --git a/application/Espo/Tools/EntityManager/EntityManager.php b/application/Espo/Tools/EntityManager/EntityManager.php
index 1cbae970c1..7c1c3ce6b4 100644
--- a/application/Espo/Tools/EntityManager/EntityManager.php
+++ b/application/Espo/Tools/EntityManager/EntityManager.php
@@ -553,6 +553,7 @@ class EntityManager
$this->metadata->delete('recordDefs', $name);
$this->metadata->delete('selectDefs', $name);
$this->metadata->delete('entityAcl', $name);
+ $this->metadata->delete('aclDefs', $name);
$this->metadata->delete('scopes', $name);
foreach ($this->metadata->get(['entityDefs', $name, 'links'], []) as $link => $item) {