From 8b5f9578511715423409ff9cf0744c181cc5670d Mon Sep 17 00:00:00 2001 From: tanghucheng Date: Wed, 13 Sep 2023 03:21:28 -0400 Subject: [PATCH] * Code for task #102737. --- module/task/model.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/task/model.php b/module/task/model.php index 9c989ae392..7b1d1e451d 100755 --- a/module/task/model.php +++ b/module/task/model.php @@ -4302,7 +4302,7 @@ class taskModel extends model $canClose = common::hasPriv('task', 'close'); $canRecordEstimate = common::hasPriv('task', 'recordEstimate'); $canEdit = common::hasPriv('task', 'edit'); - $canBatchCreate = ($this->config->vision == 'rnd' and common::hasPriv('task', 'batchCreate')); + $canBatchCreate = ($this->config->vision != 'lite' and common::hasPriv('task', 'batchCreate')); if($task->status != 'pause') $menu .= $this->buildMenu('task', 'start', $params, $task, 'browse', '', '', 'iframe', true); if($task->status == 'pause') $menu .= $this->buildMenu('task', 'restart', $params, $task, 'browse', '', '', 'iframe', true); @@ -4316,7 +4316,7 @@ class taskModel extends model $menu .= $this->buildMenu('task', 'recordEstimate', $params, $task, 'browse', 'time', '', 'iframe', true); $menu .= $this->buildMenu('task', 'edit', $params, $task, 'browse'); - if($this->config->vision == 'rnd') + if($this->config->vision != 'lite') { $menu .= $this->buildMenu('task', 'batchCreate', "execution=$task->execution&storyID=$task->story&moduleID=$task->module&taskID=$task->id&ifame=0", $task, 'browse', 'split', '', '', '', '', $this->lang->task->children); }