From a3014ea9747817cae2cfbf5590fe79f8496078f5 Mon Sep 17 00:00:00 2001 From: tbrehm <t.brehm@ispconfig.org> Date: Thu, 28 Jan 2010 07:42:45 -0500 Subject: [PATCH] Fixed: FS#933 - Resseler's services problem with client number. Additionally fixed a bug in web quota calculation. --- interface/web/dns/dns_wizard.php | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/interface/web/dns/dns_wizard.php b/interface/web/dns/dns_wizard.php index 4d0a2c9..3808e67 100644 --- a/interface/web/dns/dns_wizard.php +++ b/interface/web/dns/dns_wizard.php @@ -105,7 +105,8 @@ // load the list of clients $sql = "SELECT groupid, name FROM sys_group, client WHERE sys_group.client_id = client.client_id AND client.parent_client_id = ".$client['client_id']; $clients = $app->db->queryAllRecords($sql); - $client_select = '<option value="'.$client['client_id'].'">'.$client['contact_name'].'</option>'; + $tmp = $app->db->queryOneRecord("SELECT groupid FROM sys_group WHERE client_id = ".$client['client_id']); + $client_select = '<option value="'.$tmp['groupid'].'">'.$client['contact_name'].'</option>'; if(is_array($clients)) { foreach( $clients as $client) { $selected = ($client["groupid"] == $sys_groupid)?'SELECTED':''; -- Gitblit v1.9.1