fix when model mail selected

This commit is contained in:
atm-quentin 2018-10-18 17:02:20 +02:00
parent 606011180b
commit cfba5a5e0f
2 changed files with 6 additions and 4 deletions

View File

@ -1667,6 +1667,7 @@ MailToSendSupplierRequestForQuotation=Pour l'envoi de demande de prix fournisseu
MailToSendSupplierOrder=Pour l'envoi de commande fournisseur
MailToSendSupplierInvoice=Pour l'envoi de facture fournisseur
MailToSendContract=Pour envoyer un contrat
MailToSendReception=Pour l'envoi de réception fournisseur
MailToThirdparty=Envoy email depuis la fiche Tiers
ByDefaultInList=Afficher par défaut sur les vues listes
YouUseLastStableVersion=Vous utilisez la dernière version stable

View File

@ -83,6 +83,10 @@ else {
}
$action = GETPOST('action','alpha');
//Select mail models is same action as presend
if (GETPOST('modelselected')) {
$action = 'presend';
}
$confirm = GETPOST('confirm','alpha');
$cancel = GETPOST('cancel','alpha');
@ -2181,10 +2185,7 @@ else if ($id || $ref)
print '</div><div class="fichehalfright"><div class="ficheaddleft">';
}
//Select mail models is same action as presend
if (GETPOST('modelselected')) {
$action = 'presend';
}
if ($action == 'presend')
{
$ref = dol_sanitizeFileName($object->ref);