From 64e490d6506e40fabfda02ef67cfc7ee00cc93f8 Mon Sep 17 00:00:00 2001 From: chenfeiCF Date: Fri, 6 Nov 2015 10:38:01 +0800 Subject: [PATCH] * add notice when editing story, bug and case. --- module/bug/view/edit.html.php | 14 +++++++++++++- module/story/view/edit.html.php | 7 ++++--- module/testcase/view/edit.html.php | 12 +++++++++++- module/testcase/view/view.html.php | 2 +- 4 files changed, 29 insertions(+), 6 deletions(-) diff --git a/module/bug/view/edit.html.php b/module/bug/view/edit.html.php index ecf6794235..f0c097b004 100644 --- a/module/bug/view/edit.html.php +++ b/module/bug/view/edit.html.php @@ -81,7 +81,19 @@ js::set('oldResolvedBuild' , $bug->resolvedBuild); bug->module;?> -
+
+ "; + echo html::a($this->createLink('tree', 'browse', "rootID=$productID&view=bug¤tModuleID=0&branch=$bug->branch"), $lang->tree->manage, '_blank'); + echo '  '; + echo html::a("javascript:loadProductModules($productID)", $lang->refresh); + echo ''; + } + ?> +
diff --git a/module/story/view/edit.html.php b/module/story/view/edit.html.php index e4d52b31a4..28309dc82e 100644 --- a/module/story/view/edit.html.php +++ b/module/story/view/edit.html.php @@ -67,11 +67,12 @@
module, 'class="form-control chosen"'); + echo html::select('module', $moduleOptionMenu, $story->module, "class='form-control chosen'"); if(count($moduleOptionMenu) == 1) { - echo ""; - echo html::a($this->createLink('tree', 'browse', "rootID=$story->product&view=story&branch=$story->branch"), $lang->tree->manage, '_blank'); + echo ""; + echo html::a($this->createLink('tree', 'browse', "rootID=$story->product&view=story¤tModuleID=0&branch=$story->branch"), $lang->tree->manage, '_blank'); + echo '  '; echo html::a("javascript:loadProductModules($story->product)", $lang->refresh); echo ''; } diff --git a/module/testcase/view/edit.html.php b/module/testcase/view/edit.html.php index 27cf70443c..327489b2d1 100644 --- a/module/testcase/view/edit.html.php +++ b/module/testcase/view/edit.html.php @@ -100,7 +100,17 @@ testcase->module;?>
- + "; + echo html::a($this->createLink('tree', 'browse', "rootID=$productID&view=case¤tModuleID=0&branch=$case->branch"), $lang->tree->manage, '_blank'); + echo '  '; + echo html::a("javascript:loadProductModules($productID)", $lang->refresh); + echo ''; + } + ?>
diff --git a/module/testcase/view/view.html.php b/module/testcase/view/view.html.php index 4baa880e43..4ee7eafd72 100644 --- a/module/testcase/view/view.html.php +++ b/module/testcase/view/view.html.php @@ -52,7 +52,7 @@ echo "
"; common::printIcon('testcase', 'edit',"caseID=$case->id"); common::printCommentIcon('testcase'); - common::printIcon('testcase', 'create', "productID=$case->product&branch=$branch&moduleID=$case->module&from=testcase¶m=$case->id", '', 'button', 'copy'); + common::printIcon('testcase', 'create', "productID=$case->product&branch=$case->branch&moduleID=$case->module&from=testcase¶m=$case->id", '', 'button', 'copy'); common::printIcon('testcase', 'delete', "caseID=$case->id", '', 'button', '', 'hiddenwin'); echo '
';