Skip to content
Snippets Groups Projects
Commit ba9f0329 authored by tbrehm's avatar tbrehm
Browse files

Fixed: FS#958 - Resellers can't change clients websites IP

parent 9b89182d
No related branches found
No related tags found
No related merge requests found
...@@ -112,12 +112,12 @@ class page_action extends tform_actions { ...@@ -112,12 +112,12 @@ class page_action extends tform_actions {
// Fill the client select field // Fill the client select field
$sql = "SELECT groupid, name FROM sys_group, client WHERE sys_group.client_id = client.client_id AND client.parent_client_id = ".$client['client_id']." ORDER BY name"; $sql = "SELECT groupid, name FROM sys_group, client WHERE sys_group.client_id = client.client_id AND client.parent_client_id = ".$client['client_id']." ORDER BY name";
$clients = $app->db->queryAllRecords($sql); $records = $app->db->queryAllRecords($sql);
$client_select = '<option value="'.$client['client_id'].'">'.$client['contact_name'].'</option>'; $client_select = '<option value="'.$client['client_id'].'">'.$client['contact_name'].'</option>';
if(is_array($clients)) { if(is_array($records)) {
foreach( $clients as $client) { foreach( $records as $rec) {
$selected = @($client["groupid"] == $this->dataRecord["sys_groupid"])?'SELECTED':''; $selected = @($rec["groupid"] == $this->dataRecord["sys_groupid"])?'SELECTED':'';
$client_select .= "<option value='$client[groupid]' $selected>$client[name]</option>\r\n"; $client_select .= "<option value='$rec[groupid]' $selected>$rec[name]</option>\r\n";
} }
} }
$app->tpl->setVar("client_group_id",$client_select); $app->tpl->setVar("client_group_id",$client_select);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment