PM-3895 Notifications to all assignees

modify schema.sql add index notification
This commit is contained in:
Ronald Quenta
2015-10-29 11:05:16 -04:00
parent e00065280a
commit 883f6308ed
4 changed files with 32 additions and 5 deletions

View File

@@ -208,10 +208,7 @@ class NotificationDevice
$oNoti = new \NotificationDevice();
$devices = array();
if (is_array($userIds)){
foreach ($userIds as $id) {
$deviceUser = $oNoti->loadByUsersId($id);
$devices = array_merge($devices, $deviceUser);
}
$devices = $oNoti->loadUsersArrayId($userIds);
} else {
$devices = $oNoti->loadByUsersId($userIds);
$lists = new \ProcessMaker\BusinessModel\Lists();