dolibarr
dolibarr copied to clipboard
email template for fichinter with __ONLINE_SIGN_URL__
The ONLINE_SIGN_URL is not available for fichinter , thats not very nice.
to fix this to use ONLINE_SIGN_URL in your fichinter template change line 7702 from:
if ((isModEnabled("propal") && (!is_object($object) || $object->element == 'propal')) {
to:
if ((isModEnabled("propal") && (!is_object($object) || $object->element == 'propal')) || (!is_object($object) || $object->element == 'fichinter')) {
and add this after the last } , after line 8035
if (is_object($object) && $object->element == 'fichinter') {
if ($object->statut != Fichinter::STATUS_DRAFT && !empty($conf->global->FICHINTER_ALLOW_ONLINE_SIGN)) {
require_once DOL_DOCUMENT_ROOT.'/core/lib/signature.lib.php';
$link .= getOnlineSignatureUrl(0,'fichinter', $object->ref,0).'<br>';
$substitutionarray['__ONLINE_SIGN_URL__'] = $link;
} else {
$substitutionarray['__ONLINE_SIGN_URL__'] = '';
}
}
in file:
core/lib/functions.lib.php
then u can use Online Signature in you email template for fichinter. Enjoy!