From d831edb481ff0248f829c3a65152a5ed8789f894 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 12 Oct 2020 12:33:58 +0200 Subject: [PATCH] Fix bad popup --- htdocs/langs/en_US/admin.lang | 2 +- htdocs/projet/tasks/contact.php | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/htdocs/langs/en_US/admin.lang b/htdocs/langs/en_US/admin.lang index f8912b87eeb..4e80fc794fb 100644 --- a/htdocs/langs/en_US/admin.lang +++ b/htdocs/langs/en_US/admin.lang @@ -271,7 +271,7 @@ NoticePeriod=Notice period NewByMonth=New by month Emails=Emails EMailsSetup=Emails setup -EMailsDesc=This page allows you to override your default PHP parameters for email sending. In most cases on Unix/Linux OS, the PHP setup is correct and these parameters are unnecessary. +EMailsDesc=This page allows you to set parameters or options for email sending. EmailSenderProfiles=Emails sender profiles EMailsSenderProfileDesc=You can keep this section empty. If you enter some emails here, they will be added to the list of possible senders into the combobox when your write a new email. MAIN_MAIL_SMTP_PORT=SMTP/SMTPS Port (default value in php.ini: %s) diff --git a/htdocs/projet/tasks/contact.php b/htdocs/projet/tasks/contact.php index 313fec73721..354109f135b 100644 --- a/htdocs/projet/tasks/contact.php +++ b/htdocs/projet/tasks/contact.php @@ -437,7 +437,7 @@ if ($id > 0 || !empty($ref)) } } - // Liste des contacts lies + // List of contact line print ''; print ''.$langs->trans("Source").''; print ''.$langs->trans("ThirdParty").''; @@ -491,6 +491,9 @@ if ($id > 0 || !empty($ref)) $userstatic->firstname = $tab[$i]['firstname']; $userstatic->photo = $tab[$i]['photo']; $userstatic->login = $tab[$i]['login']; + $userstatic->email = $tab[$i]['email']; + $userstatic->statut = $tab[$i]['statucontact']; + print $userstatic->getNomUrl(-1); } if ($tab[$i]['source'] == 'external') @@ -498,6 +501,9 @@ if ($id > 0 || !empty($ref)) $contactstatic->id = $tab[$i]['id']; $contactstatic->lastname = $tab[$i]['lastname']; $contactstatic->firstname = $tab[$i]['firstname']; + $contactstatic->email = $tab[$i]['email']; + $contactstatic->statut = $tab[$i]['statucontact']; + print $contactstatic->getNomUrl(1); } print '';