diff --git a/application/Espo/Controllers/EntityManager.php b/application/Espo/Controllers/EntityManager.php index 199b5bba03..7a9c5c1a00 100644 --- a/application/Espo/Controllers/EntityManager.php +++ b/application/Espo/Controllers/EntityManager.php @@ -86,9 +86,12 @@ class EntityManager extends \Espo\Core\Controllers\Base if ($result) { $tabList = $this->getConfig()->get('tabList', []); - $tabList[] = $name; - $this->getConfig()->set('tabList', $tabList); - $this->getConfig()->save(); + + if (!in_array($name, $tabList)) { + $tabList[] = $name; + $this->getConfig()->set('tabList', $tabList); + $this->getConfig()->save(); + } $this->getContainer()->get('dataManager')->rebuild(); } else {