* Fix bug #15338.
This commit is contained in:
@@ -1194,6 +1194,13 @@ class taskModel extends model
|
||||
$task->consumed = $oldTask->consumed;
|
||||
$task->parent = $oldTask->parent;
|
||||
|
||||
if(strpos(',doing,pause,', $data->statuses[$taskID]) and empty($teams) and empty($task->left))
|
||||
{
|
||||
$taskStatus = $data->statuses[$taskID];
|
||||
dao::$errors[] = sprintf($this->lang->task->error->leftEmptyAB, zget($this->lang->task->statusList, $taskStatus));
|
||||
return false;
|
||||
}
|
||||
|
||||
if(empty($task->closedReason))
|
||||
{
|
||||
if($oldTask->status == 'done') $task->closedReason = 'done';
|
||||
|
||||
Reference in New Issue
Block a user