fix entity manager tabList

This commit is contained in:
yuri
2016-06-13 15:23:29 +03:00
parent 5af0eeff3b
commit e119f8b008

View File

@@ -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 {