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';