Fix sending expense reports
This commit is contained in:
parent
7da1f706e5
commit
4bc2e80ba8
@ -113,7 +113,7 @@ if (($action == 'send' || $action == 'relance') && ! $_POST['addfile'] && ! $_PO
|
|||||||
$result=$object->fetch($id);
|
$result=$object->fetch($id);
|
||||||
|
|
||||||
$sendtosocid=0; // Thirdparty on object
|
$sendtosocid=0; // Thirdparty on object
|
||||||
if (method_exists($object,"fetch_thirdparty") && ! in_array($object->element, array('societe','member','user')))
|
if (method_exists($object,"fetch_thirdparty") && ! in_array($object->element, array('societe','member','user','expensereport')))
|
||||||
{
|
{
|
||||||
$result=$object->fetch_thirdparty();
|
$result=$object->fetch_thirdparty();
|
||||||
if ($object->element == 'user' && $result == 0) $result=1; // Even if not found, we consider ok
|
if ($object->element == 'user' && $result == 0) $result=1; // Even if not found, we consider ok
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user