From 8f5471ebe68b6484d6a982a71fc60ce4d228a503 Mon Sep 17 00:00:00 2001 From: holan20180123 <56391770@qq.com> Date: Tue, 6 Apr 2021 11:19:09 +0800 Subject: [PATCH] * Fix bug #11006,#11058. --- module/execution/model.php | 5 +++++ module/my/view/requirement.html.php | 2 +- module/my/view/story.html.php | 2 +- module/product/model.php | 2 +- module/story/control.php | 2 ++ module/story/js/batchedit.js | 4 ++-- module/story/js/common.js | 1 + module/testcase/control.php | 4 +++- module/testcase/js/common.js | 2 +- 9 files changed, 17 insertions(+), 7 deletions(-) diff --git a/module/execution/model.php b/module/execution/model.php index 549deb41ec..04b3a1fd1b 100644 --- a/module/execution/model.php +++ b/module/execution/model.php @@ -1139,6 +1139,11 @@ class executionModel extends model $module = 'execution'; $method = 'task'; } + if($module == 'testcase' and ($method == 'view' || $method == 'edit' || $method == 'batchedit')) + { + $module = 'execution'; + $method = 'testcase'; + } if($module == 'build' and ($method == 'edit' || $method= 'view')) { $module = 'execution'; diff --git a/module/my/view/requirement.html.php b/module/my/view/requirement.html.php index 79903679b3..7383b26bd7 100644 --- a/module/my/view/requirement.html.php +++ b/module/my/view/requirement.html.php @@ -156,7 +156,7 @@ createLink('story', 'batchEdit'); + $actionLink = $this->createLink('story', 'batchEdit', 'productID=0&executionID=0&branch=0&storyType=requirement'); $misc = "data-form-action='$actionLink'"; echo html::commonButton($lang->edit, $misc); } diff --git a/module/my/view/story.html.php b/module/my/view/story.html.php index 938f05c3f3..747cd8680d 100644 --- a/module/my/view/story.html.php +++ b/module/my/view/story.html.php @@ -159,7 +159,7 @@ createLink('story', 'batchEdit'); + $actionLink = $this->createLink('story', 'batchEdit', 'productID=0&executionID=0&branch=0&storyType=story'); $misc = "data-form-action='$actionLink'"; echo html::commonButton($lang->edit, $misc); } diff --git a/module/product/model.php b/module/product/model.php index b08fdd668e..06e6add891 100644 --- a/module/product/model.php +++ b/module/product/model.php @@ -441,7 +441,7 @@ class productModel extends model } $fromModule = $this->lang->navGroup->qa == 'qa' ? 'qa' : ''; - $dropMenuLink = helper::createLink('product', 'ajaxGetDropMenu', "objectID=$productID&module=$currentModule&method=$currentMethod&extra=$extra&from=$fromModule"); + $dropMenuLink = helper::createLink($this->app->openApp == 'qa' ? 'product' : $this->app->openApp, 'ajaxGetDropMenu', "objectID=$productID&module=$currentModule&method=$currentMethod&extra=$extra&from=$fromModule"); $output = "