* Fix parent task button.
This commit is contained in:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user