action->noDynamic;?>
+-
+
+ $action):?>
+
+
- major) echo "class='active'";?>>
+ + time?> + + actor);?> + actionLabel;?> + objectLabel;?> + objectID;?> + objectLink, $action->objectName);?> + ++
+
+
From f5eee5d43d88f810ea3c2afa1189ffa4b1e17aed Mon Sep 17 00:00:00 2001 From: Yagami <976204163@qq.com> Date: Wed, 10 Mar 2021 09:11:03 +0800 Subject: [PATCH 01/16] * Finish task #36479. --- module/my/js/common.js | 1 + module/my/view/bug.html.php | 2 ++ module/my/view/requirement.html.php | 2 ++ module/my/view/story.html.php | 2 ++ module/my/view/task.html.php | 2 ++ module/my/view/testcase.html.php | 2 ++ module/my/view/testtask.html.php | 2 ++ 7 files changed, 13 insertions(+) diff --git a/module/my/js/common.js b/module/my/js/common.js index 37a1292422..60242230cc 100644 --- a/module/my/js/common.js +++ b/module/my/js/common.js @@ -3,6 +3,7 @@ $(function() if(typeof mode === 'string') { $('#subNavbar li[data-id=' + mode + ']').addClass('active'); + if(typeof rawMethod === 'string' && rawMethod == 'work') $('#subNavbar li[data-id=' + mode + '] a').append('' + total + ''); } var scp = $('[data-id="changePassword"] a'); var sign = config.requestType == 'GET' ? '&' : '?'; diff --git a/module/my/view/bug.html.php b/module/my/view/bug.html.php index 2984f29f3e..1e0c6c61ec 100644 --- a/module/my/view/bug.html.php +++ b/module/my/view/bug.html.php @@ -12,6 +12,8 @@ ?> +recTotal);?> +rawMethod);?>
action->noDynamic;?>
+" . $link . "
"; + return common::hasPriv('execution', 'all') ? $html : ''; } + /* + * Get execution switcher. + * + * @param int $executionID + * @param string $currentModule + * @param string $currentMethod + * @access public + * @return string + */ + public function getSwitcher($executionID, $currentModule, $currentMethod) + { + $this->session->set('moreExecutionLink', $this->app->getURI(true)); + + $currentExecutionName = $this->lang->execution->common; + if($executionID) + { + $currentExecution = $this->getById($executionID); + $currentExecutionName = $currentExecution->name; + } + + $dropMenuLink = helper::createLink('execution', 'ajaxGetDropMenu', "objectID=$executionID&module=$currentModule&method=$currentMethod&extra="); + $output = ""; + + return $output; + } + /** * Get project pairs. * diff --git a/module/project/model.php b/module/project/model.php index 5a2264225c..67505c5ab8 100644 --- a/module/project/model.php +++ b/module/project/model.php @@ -144,7 +144,6 @@ class projectModel extends model { $this->session->set('moreProjectLink', $this->app->getURI(true)); - $this->loadModel('project'); $currentProjectName = $this->lang->project->common; if($projectID) { From c8036c78900e2b1055551ef7bd7957787b0584ba Mon Sep 17 00:00:00 2001 From: qiyu-xie