From 4570911fd3210ce6c1954baea7b38398b9770184 Mon Sep 17 00:00:00 2001 From: Herman van Rink Date: Fri, 24 Jul 2020 22:22:45 +0200 Subject: [PATCH] One new extra occuance of {CLIENTNAMESQL} --- interface/web/mail/mail_domain_edit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interface/web/mail/mail_domain_edit.php b/interface/web/mail/mail_domain_edit.php index 95b1ea4a19..7b27873190 100644 --- a/interface/web/mail/mail_domain_edit.php +++ b/interface/web/mail/mail_domain_edit.php @@ -76,7 +76,7 @@ class page_action extends tform_actions { $settings = $app->getconf->get_global_config('domains'); if($_SESSION["s"]["user"]["typ"] == 'admin' && $settings['use_domain_module'] == 'y') { - $sql = "SELECT CONCAT(IF(client.company_name != '', CONCAT(client.company_name, ' :: '), ''), client.contact_name, ' (', client.username, IF(client.customer_no != '', CONCAT(', ', client.customer_no), ''), ')') as contactname FROM sys_group, client WHERE sys_group.client_id = client.client_id AND sys_group.groupid = ?"; + $sql = "SELECT {CLIENTNAMESQL} as contactname FROM sys_group, client WHERE sys_group.client_id = client.client_id AND sys_group.groupid = ?"; $clients = $app->db->queryAllRecords($sql, $this->dataRecord['sys_groupid']); $client_select = ''; $app->tpl->setVar("client_group_name", $client_select); -- GitLab