FIX backport of replaceement of thirdparty information on notification
This commit is contained in:
parent
84674e7bad
commit
86cf3fe8dd
1 changed files with 3 additions and 0 deletions
|
|
@ -644,6 +644,9 @@ class Notify
|
|||
$arraydefaultmessage = $formmail->getEMailTemplate($this->db, $object_type.'_send', $user, $outputlangs, 0, 1, $labeltouse);
|
||||
}
|
||||
if (!empty($labeltouse) && is_object($arraydefaultmessage) && $arraydefaultmessage->id > 0) {
|
||||
if (method_exists($object, 'fetch_thirdparty') && empty($object->thirdparty)) {
|
||||
$object->fetch_thirdparty();
|
||||
}
|
||||
$substitutionarray = getCommonSubstitutionArray($outputlangs, 0, null, $object);
|
||||
complete_substitutions_array($substitutionarray, $outputlangs, $object);
|
||||
$subject = make_substitutions($arraydefaultmessage->topic, $substitutionarray, $outputlangs);
|
||||
|
|
|
|||
Loading…
Reference in a new issue