From e119f8b0087cf1909161c5285da87e3df8290703 Mon Sep 17 00:00:00 2001 From: yuri Date: Mon, 13 Jun 2016 15:23:29 +0300 Subject: [PATCH] fix entity manager tabList --- application/Espo/Controllers/EntityManager.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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 {