From 0ee9f999eab6b66df5f90f198a041f3f542648d0 Mon Sep 17 00:00:00 2001 From: holan20180123 <56391770@qq.com> Date: Thu, 24 Jun 2021 16:31:12 +0800 Subject: [PATCH] * Code for task #39518. --- module/product/view/browse.html.php | 6 +++++- module/story/view/view.html.php | 3 ++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/module/product/view/browse.html.php b/module/product/view/browse.html.php index 891e914a25..a4125a3e8d 100644 --- a/module/product/view/browse.html.php +++ b/module/product/view/browse.html.php @@ -281,8 +281,9 @@ $projectIDParam = $isProjectStory ? "projectID=$projectID&" : ''; $canBatchChangeModule = ($canBeChanged and common::hasPriv('story', 'batchChangeModule')); $canBatchChangePlan = ($canBeChanged and common::hasPriv('story', 'batchChangePlan')); $canBatchAssignTo = ($canBeChanged and common::hasPriv('story', 'batchAssignTo')); + $canBatchImportToLib = ($canBeChanged and $this->app->moduleName == 'projectstory' and isset($this->config->maxVersion) and common::hasPriv('story', 'batchImportToLib')); - $canBatchAction = ($canBatchEdit or $canBatchClose or $canBatchReview or $canBatchChangeStage or $canBatchChangeModule or $canBatchChangePlan or $canBatchAssignTo); + $canBatchAction = ($canBatchEdit or $canBatchClose or $canBatchReview or $canBatchChangeStage or $canBatchChangeModule or $canBatchChangePlan or $canBatchAssignTo or $canBatchImportToLib); ?> ';?>
| story->assignedTo;?> | story->estimate;?> | story->status;?> | -actions;?> | +actions;?> | @@ -201,6 +201,7 @@ common::printIcon('story', 'assignTo', "storyID=$story->id", $story, 'button', '', '', 'iframe showinonlybody', true); common::printIcon('story', 'close', "storyID=$story->id", $story, 'button', '', '', 'iframe showinonlybody', true); common::printIcon('story', 'activate', "storyID=$story->id", $story, 'button', '', '', 'iframe showinonlybody', true); + if(isset($this->config->maxVersion) and $this->app->openApp == 'project') common::printIcon('story', 'importToLib', "storyID=$story->id", $story, 'button', 'assets', '', 'iframe showinonlybody', true, 'data-width="500px"'); if($story->parent >= 0 and $story->type != 'requirement' and (common::hasPriv('testcase', 'create', $story) or common::hasPriv('testcase', 'batchCreate', $story))) {
|---|