From 4bb612650b5498a165e863b884e41711b2df7908 Mon Sep 17 00:00:00 2001 From: Alexandre SPANGARO Date: Fri, 10 Sep 2021 09:09:39 +0200 Subject: [PATCH 1/3] NEW Survey - Add a clickable link in email send --- htdocs/accountancy/bookkeeping/list.php | 4 ++-- htdocs/opensurvey/fonctions.php | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/htdocs/accountancy/bookkeeping/list.php b/htdocs/accountancy/bookkeeping/list.php index 73c23e4d63b..63401ec2c30 100644 --- a/htdocs/accountancy/bookkeeping/list.php +++ b/htdocs/accountancy/bookkeeping/list.php @@ -1124,11 +1124,11 @@ while ($i < min($num, $limit)) { // Other type } - print ''; + print ''; print ''; // Picto + Ref - print '
'; + print ''; if ($line->doc_type == 'customer_invoice' || $line->doc_type == 'supplier_invoice' || $line->doc_type == 'expense_report') { print $objectstatic->getNomUrl(1, '', 0, 0, '', 0, -1, 1); diff --git a/htdocs/opensurvey/fonctions.php b/htdocs/opensurvey/fonctions.php index 3d8d76c5c1e..9d56aa8eb00 100644 --- a/htdocs/opensurvey/fonctions.php +++ b/htdocs/opensurvey/fonctions.php @@ -198,6 +198,7 @@ function getUrlSondage($id, $admin = false) } else { $url = get_server_name().'/public/studs.php?sondage='.$id; } + $url = ''.$url.''; return $url; } From 2eef38e44a6f5ffb26e736b30766420c39e5d03a Mon Sep 17 00:00:00 2001 From: Alexandre SPANGARO Date: Fri, 10 Sep 2021 09:12:11 +0200 Subject: [PATCH 2/3] Fix PR --- htdocs/accountancy/bookkeeping/list.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/accountancy/bookkeeping/list.php b/htdocs/accountancy/bookkeeping/list.php index 63401ec2c30..73c23e4d63b 100644 --- a/htdocs/accountancy/bookkeeping/list.php +++ b/htdocs/accountancy/bookkeeping/list.php @@ -1124,11 +1124,11 @@ while ($i < min($num, $limit)) { // Other type } - print ''; + print ''; print ''; // Picto + Ref - print '
'; + print ''; if ($line->doc_type == 'customer_invoice' || $line->doc_type == 'supplier_invoice' || $line->doc_type == 'expense_report') { print $objectstatic->getNomUrl(1, '', 0, 0, '', 0, -1, 1); From 26d5ccee6118362b4d40bc45c42acc17786c457d Mon Sep 17 00:00:00 2001 From: Alexandre SPANGARO Date: Fri, 10 Sep 2021 16:58:29 +0200 Subject: [PATCH 3/3] NEW Survey - Add a clickable link in email send --- htdocs/opensurvey/fonctions.php | 1 - htdocs/public/opensurvey/studs.php | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/htdocs/opensurvey/fonctions.php b/htdocs/opensurvey/fonctions.php index 9d56aa8eb00..3d8d76c5c1e 100644 --- a/htdocs/opensurvey/fonctions.php +++ b/htdocs/opensurvey/fonctions.php @@ -198,7 +198,6 @@ function getUrlSondage($id, $admin = false) } else { $url = get_server_name().'/public/studs.php?sondage='.$id; } - $url = ''.$url.''; return $url; } diff --git a/htdocs/public/opensurvey/studs.php b/htdocs/public/opensurvey/studs.php index 8b6da7e0b75..2a39e6e4730 100644 --- a/htdocs/public/opensurvey/studs.php +++ b/htdocs/public/opensurvey/studs.php @@ -165,7 +165,9 @@ if (GETPOST("boutonp") || GETPOST("boutonp.x") || GETPOST("boutonp_x")) { // bo $application = ($conf->global->MAIN_APPLICATION_TITLE ? $conf->global->MAIN_APPLICATION_TITLE : 'Dolibarr ERP/CRM'); - $body = str_replace('\n', '
', $langs->transnoentities('EmailSomeoneVoted', $nom, getUrlSondage($numsondage, true))); + $link = getUrlSondage($numsondage, true); + $link = ''.$link.''; + $body = str_replace('\n', '
', $langs->transnoentities('EmailSomeoneVoted', $nom, $link)); //var_dump($body);exit; $cmailfile = new CMailFile("[".$application."] ".$langs->trans("Poll").': '.$object->title, $email, $conf->global->MAIN_MAIL_EMAIL_FROM, $body, null, null, null, '', '', 0, -1);