diff --git a/application/Espo/Tools/EntityManager/EntityManager.php b/application/Espo/Tools/EntityManager/EntityManager.php index c647839dc2..ec50138662 100644 --- a/application/Espo/Tools/EntityManager/EntityManager.php +++ b/application/Espo/Tools/EntityManager/EntityManager.php @@ -627,6 +627,10 @@ class EntityManager if (array_key_exists('kanbanStatusIgnoreList', $data)) { $scopeData['kanbanStatusIgnoreList'] = $data['kanbanStatusIgnoreList']; + if (empty($scopeData['kanbanStatusIgnoreList'])) { + $scopeData['kanbanStatusIgnoreList'] = null; + } + $this->metadata->set('scopes', $name, $scopeData); }