Update actions_sendmails.inc.php

This commit is contained in:
Laurent Destailleur 2018-04-11 18:31:46 +02:00 committed by GitHub
parent 5dde72e3dd
commit e468584783
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -131,6 +131,12 @@ if (($action == 'send' || $action == 'relance') && ! $_POST['addfile'] && ! $_PO
if ($thirdparty->id > 0) $sendtosocid=$thirdparty->id;
}
else dol_print_error('','Use actions_sendmails.in.php for an element/object that is not supported');
if (is_object($hookmanager))
{
$parameters=array();
$reshook=$hookmanager->executeHooks('initSendToSocid',$parameters,$object,$action); // Note that $action and $object may have been modified by some hooks
}
}
else $thirdparty = $mysoc;