2
0
forked from Wavyzz/dolibarr

Update functions.lib.php

This commit is contained in:
Anthony Berton
2020-03-03 09:53:00 +01:00
committed by GitHub
parent ea7c2aa46b
commit 2fd7276a30

View File

@@ -6318,9 +6318,9 @@ function getCommonSubstitutionArray($outputlangs, $onlykey = 0, $exclude = null,
}
else $substitutionarray['__DIRECTDOWNLOAD_URL_INVOICE__'] = '';
$substitutionarray['__URL_PROPOSAL__'] = DOL_MAIN_URL_ROOT . "/comm/propal/card.php?id=" . $object->id;
$substitutionarray['__URL_ORDER__'] = DOL_MAIN_URL_ROOT . "/commande/card.php?id=" . $object->id;
$substitutionarray['__URL_INVOICE__'] = DOL_MAIN_URL_ROOT . "/compta/facture/card.php?id=" . $object->id;
if (is_object($object) && $object->element == 'propal') $substitutionarray['__URL_PROPOSAL__'] = DOL_MAIN_URL_ROOT . "/comm/propal/card.php?id=" . $object->id;
if (is_object($object) && $object->element == 'commande') $substitutionarray['__URL_ORDER__'] = DOL_MAIN_URL_ROOT . "/commande/card.php?id=" . $object->id;
if (is_object($object) && $object->element == 'facture') $substitutionarray['__URL_INVOICE__'] = DOL_MAIN_URL_ROOT . "/compta/facture/card.php?id=" . $object->id;
}
}
}