Commit 4570911f authored by Helmo's avatar Helmo

One new extra occuance of {CLIENTNAMESQL}

parent 6c2d70f9
Pipeline #3712 passed with stage
in 8 minutes and 10 seconds
......@@ -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 = '<option value="dummy">' . $clients[0]['contactname'] . '</option>';
$app->tpl->setVar("client_group_name", $client_select);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment