* Finish task #110041.

This commit is contained in:
hufangzhou
2024-01-05 10:22:17 +08:00
parent e5f64c83fd
commit 3ec31815ff
+12
View File
@@ -229,6 +229,18 @@ class messageModel extends model
$toList = implode(',', $toList);
}
if(empty($toList) and $objectType == 'demand' and $this->config->edition == 'ipd')
{
$toList = $object->assignedTo;
$toList .= ',' . str_replace(' ', '', trim($object->mailto, ','));
$toList .= ",$object->createdBy";
$reviewers = $this->loadModel('demand')->getReviewerPairs($object->id, $object->version);
$reviewers = array_keys($reviewers);
if($reviewers) $toList .= ',' . implode(',', $reviewers);
$toList = trim($toList, ',');
}
return $toList;
}