Merge branch dev/bug-64285 of zentao/zentaopms (#10846)

This commit is contained in:
刘刚
2025-08-08 08:21:26 +08:00
committed by Gitfox
+3 -1
View File
@@ -210,12 +210,14 @@ class messageModel extends model
$isonlybody = isInModal();
if($isonlybody) unset($_GET['onlybody']);
$methodNmae = 'view';
$moduleName = $objectType == 'case' ? 'testcase' : $objectType;
if($objectType == 'kanbancard') $moduleName = 'kanban';
if($objectType == 'feedback' && $this->config->vision == 'rnd') $methodNmae = 'adminView';
$space = common::checkNotCN() ? ' ' : '';
$data = ($actor == 'guest' ? 'guest' : $user->realname) . $space . $this->lang->action->label->{$actionType} . $space . $this->lang->action->objectTypes[$objectType];
$dataID = $objectType == 'kanbancard' ? $object->kanban : $objectID;
$url = helper::createLink($moduleName, 'view', "id={$dataID}");
$url = helper::createLink($moduleName, $methodNmae, "id={$dataID}");
$data .= ' ' . html::a((strpos($url, $sysURL) === 0 ? '' : $sysURL) . $url, "[#{$objectID}::{$object->$field}]");
if($isonlybody) $_GET['onlybody'] = 'yes';