Skip to content

Commit 782f4ab

Browse files
author
Florian Schaal
committed
fixed ip-handling for vserver
1 parent 04bc9d2 commit 782f4ab

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

interface/web/vm/openvz_vm_edit.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,8 @@ function onShowEnd() {
161161
//* Fill the IPv4 select field with the IP addresses that are allowed for this client
162162
//$sql = "SELECT ip_address FROM server_ip WHERE server_id = ".$client['default_webserver']." AND ip_type = 'IPv4' AND (client_id = 0 OR client_id=".$_SESSION['s']['user']['client_id'].")";
163163
if(isset($this->dataRecord["server_id"])) {
164-
$vm_server_id = $app->functions->intval($this->dataRecord["server_id"]);
164+
// $vm_server_id = $app->functions->intval($this->dataRecord["server_id"]);
165+
$vm_server_id = $app->functions->intval($this->dataRecord["vm_id"]);
165166
} else {
166167
$tmp = $app->db->queryOneRecord('SELECT server_id FROM server WHERE vserver_server = 1 AND mirror_server_id = 0 ORDER BY server_name LIMIT 0,1');
167168
$vm_server_id = $app->functions->intval($tmp['server_id']);

0 commit comments

Comments
 (0)