fix recurcivity
This commit is contained in:
parent
4e16f64af0
commit
3d84adbd76
@ -719,14 +719,12 @@ class Project extends CommonObject
|
|||||||
{
|
{
|
||||||
global $user;
|
global $user;
|
||||||
|
|
||||||
$arrParents = array();
|
|
||||||
foreach($arr as $task)
|
foreach($arr as $task)
|
||||||
{
|
{
|
||||||
if($task->hasChildren() < 0) $task->delete($user);
|
if($task->hasChildren() <= 0) $task->delete($user);
|
||||||
else $arrParents[] = $task;
|
|
||||||
}
|
}
|
||||||
|
$this->getLinesArray($user);
|
||||||
if (count($arrParents)) $this->deleteTasks($arrParents);
|
if (count($this->lines)) $this->deleteTasks($this->lines);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user