From 07a640adfd6e14bf866755b16820d958e1397b43 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 10 Sep 2022 16:24:55 +0200 Subject: [PATCH] Fix used label instead of signature --- htdocs/core/tpl/card_presend.tpl.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/core/tpl/card_presend.tpl.php b/htdocs/core/tpl/card_presend.tpl.php index 7e55b5b20f0..888cb1d7026 100644 --- a/htdocs/core/tpl/card_presend.tpl.php +++ b/htdocs/core/tpl/card_presend.tpl.php @@ -242,13 +242,13 @@ if ($action == 'presend') { } elseif (preg_match('/company/', $formmail->fromtype, $reg)) { $emailsendersignature = ''; } elseif (preg_match('/senderprofile_(\d+)/', $formmail->fromtype, $reg)) { - $sql = "SELECT rowid, label, email FROM ".$db->prefix()."c_email_senderprofile"; + $sql = "SELECT rowid, label, email, signature FROM ".$db->prefix()."c_email_senderprofile"; $sql .= " WHERE rowid = ".((int) $reg[1]); $resql = $db->query($sql); if ($resql) { $obj = $db->fetch_object($resql); if ($obj) { - $emailsendersignature = $obj->label; + $emailsendersignature = $obj->signature; } } }