* Fix parent task button.

This commit is contained in:
Yagami
2019-04-11 10:49:00 +08:00
parent c56b754028
commit 8bd5e075d1
+1 -1
View File
@@ -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';