From 209b7a43b8f0d392b520c8439ba42debe3e55acd Mon Sep 17 00:00:00 2001 From: wangyidong Date: Wed, 31 Mar 2021 15:44:24 +0800 Subject: [PATCH 1/3] * fix bug #11142. --- module/message/model.php | 41 ++++++++++++++++++++++------------------ 1 file changed, 23 insertions(+), 18 deletions(-) diff --git a/module/message/model.php b/module/message/model.php index a5cfdd6c89..ffa3c51b72 100644 --- a/module/message/model.php +++ b/module/message/model.php @@ -21,8 +21,8 @@ class messageModel extends model } /** - * Get objectTypes - * + * Get objectTypes + * * @access public * @return array */ @@ -37,8 +37,8 @@ class messageModel extends model } /** - * Get object actions. - * + * Get object actions. + * * @access public * @return array */ @@ -57,11 +57,11 @@ class messageModel extends model /** * Check send. - * - * @param string $objectType - * @param int $objectID - * @param string $actionType - * @param int $actionID + * + * @param string $objectType + * @param int $objectID + * @param string $actionType + * @param int $actionID * @access public * @return void */ @@ -102,11 +102,11 @@ class messageModel extends model /** * Save notice. - * - * @param string $objectType - * @param int $objectID - * @param string $actionType - * @param int $actionID + * + * @param string $objectType + * @param int $objectID + * @param string $actionType + * @param int $actionID * @access public * @return void */ @@ -127,11 +127,16 @@ class messageModel extends model $this->app->loadConfig('mail'); $sysURL = zget($this->config->mail, 'domain', common::getSysURL()); + $isonlybody = isonlybody(); + if($isonlybody) unset($_GET['onlybody']); + $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($sysURL . helper::createLink($moduleName, 'view', "id=$objectID"), "[#{$objectID}::{$object->$field}]"); + if($isonlybody) $_GET['onlybody'] = 'yes'; + $notify = new stdclass(); $notify->objectType = 'message'; $notify->action = $actionID; @@ -146,9 +151,9 @@ class messageModel extends model /** * Get toList. - * - * @param object $object - * @param string $objectType + * + * @param object $object + * @param string $objectType * @access public * @return string */ @@ -165,7 +170,7 @@ class messageModel extends model /** * Get notice todos. - * + * * @access public * @return array */ From a3e739956601824e3e3db9976d7e51156db7564a Mon Sep 17 00:00:00 2001 From: holan20180123 <56391770@qq.com> Date: Wed, 31 Mar 2021 15:51:06 +0800 Subject: [PATCH 2/3] * Finish task #37027. --- module/block/view/bugblock.html.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/block/view/bugblock.html.php b/module/block/view/bugblock.html.php index 4756d776a9..fc925f1ccb 100644 --- a/module/block/view/bugblock.html.php +++ b/module/block/view/bugblock.html.php @@ -30,7 +30,7 @@ bug->severityAB?> priAB?> - bug->openedDate;?> + bug->deadline;?> bug->statusAB;?> @@ -63,7 +63,7 @@ bug->priList, $bug->pri)?> - openedDate;?> + deadline) ? '' : $bug->deadline;?> processStatus('bug', $bug);?> From 06209850d5473941d066ff2819f08111220c0269 Mon Sep 17 00:00:00 2001 From: tianshujie98 Date: Wed, 31 Mar 2021 16:04:09 +0800 Subject: [PATCH 3/3] * Fix bug #11132. --- module/story/control.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/story/control.php b/module/story/control.php index 0c2f309bae..fece02029e 100644 --- a/module/story/control.php +++ b/module/story/control.php @@ -1577,7 +1577,7 @@ class story extends control if($result == 'no') { $this->dao->update(TABLE_STORY)->set('URChanged')->eq(0)->where('id')->eq($storyID)->exec(); - die(js::closeModal('parent.parent', 'this')); + die(js::reload('parent', 'this')); } $this->view->changedStories = $this->story->getChangedStories($story);