From b304022ec63697b68e4bb54c9b26e509f104f3b4 Mon Sep 17 00:00:00 2001 From: zhengrunyu Date: Thu, 30 Dec 2021 09:29:08 +0800 Subject: [PATCH] *Finish task 46665. --- module/productplan/view/browsebylist.html.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/productplan/view/browsebylist.html.php b/module/productplan/view/browsebylist.html.php index e271775e94..e998ece3bb 100644 --- a/module/productplan/view/browsebylist.html.php +++ b/module/productplan/view/browsebylist.html.php @@ -155,7 +155,7 @@ common::printIcon('productplan', 'close', "planID=$plan->id", $plan, 'list', 'off', '', $class, false, $attr, $lang->productplan->close); } - $attr = $plan->expired ? "disabled='disabled'" : ''; + $attr = ($plan->expired or $plan->status ==='done' or $plan->status ==='closed') ? "disabled='disabled'" : ''; if(common::hasPriv('execution', 'create', $plan) and $plan->parent >= 0) { $disabled = '';