Merge branch 'sprint/master_zhouxudong_15146' into 'master'
Sprint/master zhouxudong 15146 See merge request easycorp/zentaopms!2855
This commit is contained in:
+13
-2
@@ -1452,7 +1452,11 @@ class task extends control
|
||||
}
|
||||
|
||||
/* Skip parent task when batch close task. */
|
||||
if($task->parent == '-1') continue;
|
||||
if($task->parent == '-1')
|
||||
{
|
||||
$parentTasks[$taskID] = $taskID;
|
||||
continue;
|
||||
}
|
||||
|
||||
/* Skip closed task when batch close task. */
|
||||
if($task->status == 'closed') continue;
|
||||
@@ -1466,11 +1470,18 @@ class task extends control
|
||||
}
|
||||
if(isset($skipTasks) and empty($skipTaskIdList))
|
||||
{
|
||||
$skipTasks = join(',', $skipTasks);
|
||||
$skipTasks = join(',', $skipTasks);
|
||||
$confirmURL = $this->createLink('task', 'batchClose', "skipTaskIdList=$skipTasks");
|
||||
$cancelURL = $this->server->HTTP_REFERER;
|
||||
return print(js::confirm(sprintf($this->lang->task->error->skipClose, $skipTasks), $confirmURL, $cancelURL, 'self', 'parent'));
|
||||
}
|
||||
|
||||
if(isset($parentTasks))
|
||||
{
|
||||
$parentTasks = join(',', $parentTasks);
|
||||
return print(js::alert(sprintf($this->lang->task->error->closeParent, $parentTasks)) . js::reload('parent'));
|
||||
}
|
||||
|
||||
if(!dao::isError()) $this->loadModel('score')->create('ajax', 'batchOther');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user