Fix missing lin to thirdparty on some actions
This commit is contained in:
parent
fe7654c067
commit
4016c300d2
@ -942,6 +942,8 @@ class InterfaceActionsAuto extends DolibarrTriggers
|
|||||||
$societeforaction->fetch($object->socid);
|
$societeforaction->fetch($object->socid);
|
||||||
} elseif (isset($object->fk_soc) && $object->fk_soc > 0) {
|
} elseif (isset($object->fk_soc) && $object->fk_soc > 0) {
|
||||||
$societeforaction->fetch($object->fk_soc);
|
$societeforaction->fetch($object->fk_soc);
|
||||||
|
} elseif (isset($object->thirdparty) && isset($object->thirdparty->id) && $object->thirdparty->id > 0) {
|
||||||
|
$societeforaction = $object->thirdparty;
|
||||||
}
|
}
|
||||||
|
|
||||||
$projectid = isset($object->fk_project) ? $object->fk_project : 0;
|
$projectid = isset($object->fk_project) ? $object->fk_project : 0;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user