Skip to content

Commit 332ae54

Browse files
author
Till Brehm
committed
Improved client select field in domain input form of the client module.
1 parent 466f308 commit 332ae54

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

interface/web/client/domain_edit.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ function onShowEnd() {
6969

7070
if($_SESSION["s"]["user"]["typ"] == 'admin') {
7171
// Getting Clients of the user
72-
$sql = "SELECT groupid, name FROM sys_group WHERE client_id > 0 ORDER BY name";
72+
//$sql = "SELECT groupid, name FROM sys_group WHERE client_id > 0 ORDER BY name";
73+
$sql = "SELECT sys_group.groupid, sys_group.name, 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.client_id > 0 ORDER BY sys_group.name";
7374
$clients = $app->db->queryAllRecords($sql);
7475
$client_select = '';
7576
if($_SESSION["s"]["user"]["typ"] == 'admin') $client_select .= "<option value='0'></option>";

0 commit comments

Comments
 (0)