FIX thirdparty not set on some events
This commit is contained in:
parent
25f66bd024
commit
be7e424862
@ -799,7 +799,8 @@ class InterfaceActionsAuto extends DolibarrTriggers
|
|||||||
if ($object->sendtoid > 0) $contactforaction->fetch($object->sendtoid);
|
if ($object->sendtoid > 0) $contactforaction->fetch($object->sendtoid);
|
||||||
}
|
}
|
||||||
// Set societeforaction.
|
// Set societeforaction.
|
||||||
if ($object->socid > 0) $societeforaction->fetch($object->socid);
|
if ($object->socid > 0) $societeforaction->fetch($object->socid);
|
||||||
|
elseif ($object->fk_soc > 0) $societeforaction->fetch($object->fk_soc);
|
||||||
|
|
||||||
$projectid = isset($object->fk_project)?$object->fk_project:0;
|
$projectid = isset($object->fk_project)?$object->fk_project:0;
|
||||||
if ($object->element == 'project') $projectid = $object->id;
|
if ($object->element == 'project') $projectid = $object->id;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user