From cfba5a5e0f94b11ec49b89c34c12ffea14421cff Mon Sep 17 00:00:00 2001 From: atm-quentin Date: Thu, 18 Oct 2018 17:02:20 +0200 Subject: [PATCH] fix when model mail selected --- htdocs/langs/fr_FR/admin.lang | 1 + htdocs/reception/card.php | 9 +++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/htdocs/langs/fr_FR/admin.lang b/htdocs/langs/fr_FR/admin.lang index e72d093d543..bddd75406bc 100644 --- a/htdocs/langs/fr_FR/admin.lang +++ b/htdocs/langs/fr_FR/admin.lang @@ -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 diff --git a/htdocs/reception/card.php b/htdocs/reception/card.php index 74fd6dca388..bb0875c0cbf 100644 --- a/htdocs/reception/card.php +++ b/htdocs/reception/card.php @@ -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 '
'; } - //Select mail models is same action as presend - if (GETPOST('modelselected')) { - $action = 'presend'; - } + if ($action == 'presend') { $ref = dol_sanitizeFileName($object->ref);