* finish task #6617.

This commit is contained in:
wangyidong
2019-12-03 16:53:22 +08:00
parent 5af6fc1218
commit 2241f96e67
2 changed files with 16 additions and 1 deletions
+4 -1
View File
@@ -124,10 +124,13 @@ class messageModel extends model
if(empty($toList)) return false;
if($toList == $actor) return false;
$this->app->loadConfig('mail');
$sysURL = zget($this->config->mail, 'domain', common::getSysURL());
$moduleName = $objectType == 'case' ? 'testcase' : $objectType;
$space = common::checkNotCN() ? ' ' : '';
$data = $user->realname . $space . $this->lang->action->label->$actionType . $space . $this->lang->action->objectTypes[$objectType];
$data .= ' ' . html::a(helper::createLink($moduleName, 'view', "id=$objectID"), "[#{$objectID}::{$object->$field}]");
$data .= ' ' . html::a($sysURL . helper::createLink($moduleName, 'view', "id=$objectID"), "[#{$objectID}::{$object->$field}]");
$notify = new stdclass();
$notify->objectType = 'message';