diff --git a/htdocs/core/tpl/card_presend.tpl.php b/htdocs/core/tpl/card_presend.tpl.php index 0c812cc7609..168a00f6ab0 100644 --- a/htdocs/core/tpl/card_presend.tpl.php +++ b/htdocs/core/tpl/card_presend.tpl.php @@ -24,7 +24,7 @@ * * $trackid must be defined * $modelmail - * $defaulttopic + * $defaulttopic and $defaulttopiclang * $diroutput * $arrayoffamiliestoexclude=array('system', 'mycompany', 'object', 'objectamount', 'date', 'user', ...); */ @@ -77,6 +77,9 @@ if ($action == 'presend') { $outputlangs->setDefaultLang($newlang); // Load traductions files required by page $outputlangs->loadLangs(array('commercial', 'bills', 'orders', 'contracts', 'members', 'propal', 'products', 'supplier_proposal', 'interventions', 'receptions', 'sendings')); + if (!empty($defaulttopiclang)) { + $outputlangs->loadLangs(array($defaulttopiclang)); + } } $topicmail = ''; diff --git a/htdocs/projet/card.php b/htdocs/projet/card.php index 22237675fb3..806d73f225e 100644 --- a/htdocs/projet/card.php +++ b/htdocs/projet/card.php @@ -1631,6 +1631,7 @@ if ($action == 'create' && $user->rights->projet->creer) { // Presend form $modelmail = 'project'; $defaulttopic = 'SendProjectRef'; + $defaulttopiclang = 'projects'; $diroutput = $conf->project->multidir_output[$object->entity]; $autocopy = 'MAIN_MAIL_AUTOCOPY_PROJECT_TO'; // used to know the automatic BCC to add $trackid = 'proj'.$object->id;