Fix missing lin to thirdparty on some actions

This commit is contained in:
Laurent Destailleur 2021-04-09 13:38:29 +02:00
parent fe7654c067
commit 4016c300d2

View File

@ -942,6 +942,8 @@ class InterfaceActionsAuto extends DolibarrTriggers
$societeforaction->fetch($object->socid);
} elseif (isset($object->fk_soc) && $object->fk_soc > 0) {
$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;