fix CI v21 html.formmail.class.php (#35760)
This commit is contained in:
parent
2e644b8420
commit
f6db1af7a8
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue