From ededa035c9998758e0644ae7ebdc46a2d9188237 Mon Sep 17 00:00:00 2001 From: dingna Date: Wed, 15 Sep 2021 11:23:36 +0800 Subject: [PATCH] * Fix bug #14199. --- module/execution/view/task.html.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/execution/view/task.html.php b/module/execution/view/task.html.php index 8da2e6a399..b8e969cbf2 100644 --- a/module/execution/view/task.html.php +++ b/module/execution/view/task.html.php @@ -226,7 +226,7 @@ body {margin-bottom: 25px;} $task = reset($tasks); $canBatchEdit = common::hasPriv('task', 'batchEdit', !empty($task) ? $task : null); $canBatchClose = (common::hasPriv('task', 'batchClose', !empty($task) ? $task : null) and strtolower($browseType) != 'closed'); - $canBatchCancel = common::hasPriv('task', 'batchCancel', !empty($task) ? $task : null); + $canBatchCancel = (common::hasPriv('task', 'batchCancel', !empty($task) ? $task : null) and strtolower($browseType) != 'cancel'); $canBatchChangeModule = common::hasPriv('task', 'batchChangeModule', !empty($task) ? $task : null); $canBatchAssignTo = common::hasPriv('task', 'batchAssignTo', !empty($task) ? $task : null);