From f6db1af7a86b2599ef82f3dfaeb92f2b295eda63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Tue, 14 Oct 2025 22:53:25 +0200 Subject: [PATCH] fix CI v21 html.formmail.class.php (#35760) --- htdocs/core/class/html.formmail.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/class/html.formmail.class.php b/htdocs/core/class/html.formmail.class.php index 03f22c727c6..693b7b674e8 100644 --- a/htdocs/core/class/html.formmail.class.php +++ b/htdocs/core/class/html.formmail.class.php @@ -2437,7 +2437,7 @@ class ModelMail extends CommonObject { // The table llx_c_email_templates has no field ref. The field ref was named "label" instead. So we change the call to fetchCommon. //$result = $this->fetchCommon($id, $ref, '', $noextrafields); - $this->fetchCommon($id, '', (empty($ref) ? '' : " AND t.label = '".$this->db->escape($ref)."'"), $noextrafields); + $result = $this->fetchCommon($id, '', (empty($ref) ? '' : " AND t.label = '".$this->db->escape($ref)."'"), $noextrafields); if ($result > 0 && !empty($this->table_element_line) && empty($nolines)) { $this->fetchLines($noextrafields);