From 8bd5e075d1c62e13f803595c4a1758ff906c7032 Mon Sep 17 00:00:00 2001 From: Yagami <976204163@qq.com> Date: Thu, 11 Apr 2019 10:49:00 +0800 Subject: [PATCH] * Fix parent task button. --- module/task/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/task/model.php b/module/task/model.php index 029837eb42..e8e74f97ab 100644 --- a/module/task/model.php +++ b/module/task/model.php @@ -2445,7 +2445,6 @@ class taskModel extends model $action = strtolower($action); if($action == 'start' and !empty($task->children)) return false; - if($action == 'recordestimate' and !empty($task->children)) return false; if($action == 'finish' and !empty($task->children)) return false; if($action == 'cancel' and !empty($task->children)) return false; if($action == 'pause' and !empty($task->children)) return false; @@ -2454,6 +2453,7 @@ class taskModel extends model if($action == 'close' and !empty($task->children)) return false; if($action == 'batchcreate' and !empty($task->team)) return false; if($action == 'batchcreate' and $task->parent > 0) return false; + if($action == 'recordestimate' and $task->parent == -1) return false; if($action == 'start') return $task->status == 'wait'; if($action == 'restart') return $task->status == 'pause';