Skip to content

Commit

Permalink
Merge pull request #10993 from altatof/presend
Browse files Browse the repository at this point in the history
NEW : use outputlangs in fullname construction for emails
  • Loading branch information
eldy committed Apr 11, 2019
2 parents f2fd07d + 79beb59 commit 7db0c0c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions htdocs/core/tpl/card_presend.tpl.php
Expand Up @@ -145,7 +145,7 @@
{
$fuser = new User($db);
$fuser->fetch($object->fk_user_author);
$liste['thirdparty'] = $fuser->getFullName($langs)." <".$fuser->email.">";
$liste['thirdparty'] = $fuser->getFullName($outputlangs)." <".$fuser->email.">";
}
elseif ($object->element == 'societe')
{
Expand All @@ -155,11 +155,11 @@
}
elseif ($object->element == 'contact')
{
$liste['contact'] = $object->getFullName($langs)." <".$object->email.">";
$liste['contact'] = $object->getFullName($outputlangs)." <".$object->email.">";
}
elseif ($object->element == 'user' || $object->element == 'member')
{
$liste['thirdparty'] = $object->getFullName($langs)." <".$object->email.">";
$liste['thirdparty'] = $object->getFullName($outputlangs)." <".$object->email.">";
}
else
{
Expand Down Expand Up @@ -221,7 +221,7 @@

foreach ($contactarr as $contact) {
$contactstatic->fetch($contact['id']);
$substitutionarray['__CONTACT_NAME_'.$contact['code'].'__'] = $contactstatic->getFullName($langs, 1);
$substitutionarray['__CONTACT_NAME_'.$contact['code'].'__'] = $contactstatic->getFullName($outputlangs, 1);
}
}

Expand Down

0 comments on commit 7db0c0c

Please sign in to comment.