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

Fix: [bug #385] Can't delete a task

parent 3bc9e378
No related branches found
No related tags found
No related merge requests found
......@@ -85,10 +85,10 @@ if ($action == 'confirm_delete' && $confirm == "yes" && $user->rights->projet->s
{
if ($object->fetch($id) >= 0 )
{
$result=$projecstatict->fetch($object->fk_projet);
if (! empty($projecstatic->socid))
$result=$projectstatic->fetch($object->fk_projet);
if (! empty($projectstatic->socid))
{
$projecstatic->societe->fetch($projecstatic->socid);
$projectstatic->societe->fetch($projectstatic->socid);
}
if ($object->delete($user) > 0)
......
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