diff --git a/src/app/contact/controllers/ContactGroupController.php b/src/app/contact/controllers/ContactGroupController.php index 3642e11206b4aa079344f892102a610dc320260a..d81be05dabd5a083bf08d33c5d250d70fbbf9396 100644 --- a/src/app/contact/controllers/ContactGroupController.php +++ b/src/app/contact/controllers/ContactGroupController.php @@ -64,7 +64,7 @@ class ContactGroupController $data['public'] = $data['public'] ? 'true' : 'false'; $data['owner'] = $GLOBALS['userId']; - $data['entity_owner'] = UserModel::getPrimaryEntityByUserId(['userId' => $GLOBALS['userId']])['entity_id']; + $data['entity_owner'] = ($GLOBALS['userId'] == 'superadmin' ? 'superadmin' : UserModel::getPrimaryEntityByUserId(['userId' => $GLOBALS['userId']])['entity_id']); $id = ContactGroupModel::create($data);