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

This commit is contained in:
Regis Houssin 2012-05-05 09:28:06 +02:00
parent 3bc9e378ab
commit 00b65d42e4

View File

@ -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)