* Finish task #110042.

This commit is contained in:
hufangzhou
2024-01-04 13:04:02 +08:00
parent 8a1f3a9415
commit d292f45b5f
2 changed files with 6 additions and 0 deletions
+1
View File
@@ -193,6 +193,7 @@ class messageModel extends model
if(empty($toList) and $objectType == 'testtask') $toList = $object->owner;
if(empty($toList) and $objectType == 'meeting') $toList = $object->host . $object->participant;
if(empty($toList) and $objectType == 'mr') $toList = $object->createdBy . ',' . $object->assignee;
if(empty($toList) and $objectType == 'demandpool') $toList = trim($object->owner, ',') . ',' . trim($object->reviewer, ',');
if(empty($toList) and $objectType == 'release')
{
/* Get notifiy persons. */
@@ -105,6 +105,11 @@ class xuanxuanMessage extends messageModel
$target .= ',' . $user;
}
}
elseif($objectType == 'demandpool')
{
if(!empty($object->owner)) $target .= trim($object->owner, ',');
if(!empty($object->reviewer)) $target .= ',' . trim($object->reviewer, ',');
}
else
{
if(!empty($object->assignedTo)) $target .= $object->assignedTo == 'closed' ? $object->openedBy : $object->assignedTo;