Skip to content
Snippets Groups Projects
Commit 2c58a7f6 authored by Regis Houssin's avatar Regis Houssin
Browse files

Fix: we check whether the task has no sub-task

parent 860611c1
No related branches found
No related tags found
No related merge requests found
......@@ -121,6 +121,8 @@ if ($taskid)
$result=$projectstatic->fetch($task->fk_project);
if (! empty($projectstatic->socid)) $projectstatic->societe->fetch($projectstatic->socid);
if ($mesg) print $mesg;
$head=task_prepare_head($task);
dol_fiche_head($head, 'task', $langs->trans("Task"),0,'projecttask');
......@@ -262,7 +264,7 @@ if ($taskid)
}
// Delete
if ($user->rights->projet->supprimer)
if ($user->rights->projet->supprimer && ! $task->hasChildren())
{
print '<a class="butActionDelete" href="'.$_SERVER['PHP_SELF'].'?id='.$task->id.'&amp;action=delete">'.$langs->trans('Delete').'</a>';
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment