Skip to content

Commit e56b392

Browse files
committed
Fixed client selector in web_domain_edit.php
1 parent 6733652 commit e56b392

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

interface/web/sites/lib/lang/en_web_domain.lng

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,6 @@ $wb['error_ssl_locality_empty'] = 'SSL Locality is empty.';
4444
$wb['error_ssl_organisation_empty'] = 'SSL Organisation is empty.';
4545
$wb['error_ssl_organisation_unit_empty'] = 'SSL Organisation Unit is empty.';
4646
$wb['error_ssl_country_empty'] = 'SSL Country is empty.';
47+
$wb["client_group_id_txt"] = 'Client';
4748

4849
?>

interface/web/sites/web_domain_edit.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,15 +96,15 @@ function onShowEnd() {
9696

9797
// Get the limits of the client
9898
$client_group_id = $_SESSION["s"]["user"]["default_group"];
99-
$client = $app->db->queryOneRecord("SELECT client_id, limit_web_domain, default_webserver FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id");
99+
$client = $app->db->queryOneRecord("SELECT client.client_id, limit_web_domain, default_webserver FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id");
100100

101101
// Set the webserver to the default server of the client
102102
$tmp = $app->db->queryOneRecord("SELECT server_name FROM server WHERE server_id = $client[default_webserver]");
103103
$app->tpl->setVar("server_id","<option value='$client[default_webserver]'>$tmp[server_name]</option>");
104104
unset($tmp);
105105

106106
// Fill the client select field
107-
$sql = "SELECT groupid, name FROM sys_group, client WHERE sys_group.client_id = client.parent_client_id AND client.parent_client_id = ".$client['client_id'];
107+
$sql = "SELECT groupid, name FROM sys_group, client WHERE sys_group.client_id = client.client_id AND client.parent_client_id = ".$client['client_id'];
108108
$clients = $app->db->queryAllRecords($sql);
109109
$client_select = '';
110110
if(is_array($clients)) {

0 commit comments

Comments
 (0)