Skip to content

Commit fdc9446

Browse files
author
Till Brehm
committed
Fixed #4233 3.1 stable IPs of a client can not be selected
1 parent 174d56b commit fdc9446

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interface/web/sites/ajax_get_ip.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
$tmp = $app->db->queryOneRecord("SELECT client_id FROM sys_group WHERE groupid = ?", $client_group_id);
4848
$sql = "SELECT ip_address FROM server_ip WHERE ip_type = ? AND server_id = ? AND (client_id = 0 OR client_id=?)";
4949

50-
$ips = $app->db->queryAllRecords($sql, $ip_type, $server_id, $tmp['groupid']);
50+
$ips = $app->db->queryAllRecords($sql, $ip_type, $server_id, $tmp['client_id']);
5151
// $ip_select = "<option value=''></option>";
5252
if($ip_type == 'IPv4'){
5353
$ip_select = ($web_config['enable_ip_wildcard'] == 'y')?"*#":"";

0 commit comments

Comments
 (0)