* Finish task #41226.

This commit is contained in:
tianshujie98
2021-08-12 16:14:56 +08:00
parent 83ffe7deee
commit 3e86bf4da9
23 changed files with 361 additions and 13 deletions
+11
View File
@@ -164,6 +164,17 @@ class messageModel extends model
if(empty($toList) and $objectType == 'todo') $toList = $object->account;
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 == 'release')
{
/* Get notifiy persons. */
$notifyPersons = array();
if(!empty($toList->notify)) $notifyPersons = $this->loadModel('release')->getNotifyPersons($object->notify, $object->product, $object->build);
foreach($notifyPersons as $account)
{
if(strpos($object->mailto . ',', ",{$account},") === false) $toList .= ',' . $account;
}
}
if($toList == 'closed') $toList = '';
return $toList;