Skip to content

Commit

Permalink
Update project.class.php
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Aug 21, 2018
1 parent 3523c2b commit 91bfa4b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions htdocs/projet/class/project.class.php
Expand Up @@ -714,14 +714,15 @@ function delete($user, $notrigger=0)
/**
* Delete tasks with no children first, then task with children recursively
*
* @param int <0 if KO, 1 if OK
* @param User $user User
* @return int <0 if KO, 1 if OK
*/
function deleteTasks($user)
{
$countTasks = count($this->lines);
$deleted = false;
if ($countTasks)
{
{
foreach($this->lines as $task)
{
if ($task->hasChildren() <= 0) { // If there is no children (or error to detect them)
Expand Down

0 comments on commit 91bfa4b

Please sign in to comment.