Fix: [bug #385] Can't delete a task
This commit is contained in:
parent
3bc9e378ab
commit
00b65d42e4
@ -85,10 +85,10 @@ if ($action == 'confirm_delete' && $confirm == "yes" && $user->rights->projet->s
|
|||||||
{
|
{
|
||||||
if ($object->fetch($id) >= 0 )
|
if ($object->fetch($id) >= 0 )
|
||||||
{
|
{
|
||||||
$result=$projecstatict->fetch($object->fk_projet);
|
$result=$projectstatic->fetch($object->fk_projet);
|
||||||
if (! empty($projecstatic->socid))
|
if (! empty($projectstatic->socid))
|
||||||
{
|
{
|
||||||
$projecstatic->societe->fetch($projecstatic->socid);
|
$projectstatic->societe->fetch($projectstatic->socid);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($object->delete($user) > 0)
|
if ($object->delete($user) > 0)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user