@@ -98,7 +98,6 @@
common::printIcon('story', 'review', $vars, $story, 'list', 'search', '', 'iframe', true);
common::printIcon('story', 'close', $vars, $story, 'list', '', '', 'iframe', true);
common::printIcon('story', 'edit', $vars, $story, 'list', '', '', 'iframe', true, "data-width='95%'");
- common::printIcon('story', 'createCase', "productID=$story->product&branch=$story->branch&module=0&from=¶m=0&$vars", $story, 'list', 'sitemap');
}
?>
diff --git a/module/story/model.php b/module/story/model.php
index 413fc6c928..e057aafc49 100644
--- a/module/story/model.php
+++ b/module/story/model.php
@@ -3337,6 +3337,10 @@ class storyModel extends model
}
}
}
+ else if($id == 'actions')
+ {
+ $class .= ' text-center';
+ }
echo "| ";
if(isset($this->config->bizVersion)) $this->loadModel('flow')->printFlowCell('story', $story, $id);
@@ -3484,7 +3488,7 @@ class storyModel extends model
common::printIcon('story', 'review', $vars . "&from=$story->from", $story, 'list', 'search', '', '', false, "data-group=$story->from");
common::printIcon('story', 'close', $vars, $story, 'list', '', '', 'iframe', true);
common::printIcon('story', 'edit', $vars . "&from=$story->from", $story, 'list', '', '', '', false, "data-group=$story->from");
- common::printIcon('story', 'createCase', "productID=$story->product&branch=$story->branch&module=0&from=¶m=0&$vars", $story, 'list', 'sitemap', '', '', false, "data-app='qa'");
+ if($story->type != 'requirement') common::printIcon('story', 'createCase', "productID=$story->product&branch=$story->branch&module=0&from=¶m=0&$vars", $story, 'list', 'sitemap', '', '', false, "data-app='qa'");
common::printIcon('story', 'batchCreate', "productID=$story->product&branch=$story->branch&module=$story->module&storyID=$story->id", $story, 'list', 'split', '', '', '', '', $this->lang->story->subdivide);
if($this->app->rawModule == 'projectstory') common::printIcon('projectstory', 'unlinkStory', "projectID={$this->session->project}&storyID=$story->id", '', 'list', 'unlink', 'hiddenwin');
}
From 6b962a12c43378c8c6e9e5e2beb27da7e8988795 Mon Sep 17 00:00:00 2001
From: Yagami <976204163@qq.com>
Date: Mon, 26 Apr 2021 11:12:10 +0800
Subject: [PATCH 5/5] * Add testtask switcher link.
---
module/product/model.php | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/module/product/model.php b/module/product/model.php
index 7608cf6684..d5d1d6aecf 100644
--- a/module/product/model.php
+++ b/module/product/model.php
@@ -1575,6 +1575,10 @@ class productModel extends model
{
$link = helper::createLink($module, 'report', "productID=%s" . ($branch ? "&branch=%s" : '&branch=0') . "&extra=$extra");
}
+ elseif($module == 'testtask')
+ {
+ $link = helper::createLink($module, 'browse', "productID=%s" . ($branch ? "&branch=%s" : '&branch=0') . "&extra=$extra");
+ }
elseif($module == 'bug' && $method == 'view')
{
$link = helper::createLink('bug', 'browse', "productID=%s" . ($branch ? "&branch=%s" : '&branch=0') . "&extra=$extra");
|