From 782f4abd3f01b578938a88ad35a2fc9f4a46db74 Mon Sep 17 00:00:00 2001 From: Florian Schaal <florian@schaal-24.de> Date: Thu, 22 Oct 2015 13:29:00 +0200 Subject: [PATCH] fixed ip-handling for vserver --- interface/web/vm/openvz_vm_edit.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/interface/web/vm/openvz_vm_edit.php b/interface/web/vm/openvz_vm_edit.php index 0db2053a36..69265885cd 100644 --- a/interface/web/vm/openvz_vm_edit.php +++ b/interface/web/vm/openvz_vm_edit.php @@ -161,7 +161,8 @@ class page_action extends tform_actions { //* Fill the IPv4 select field with the IP addresses that are allowed for this client //$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'].")"; if(isset($this->dataRecord["server_id"])) { - $vm_server_id = $app->functions->intval($this->dataRecord["server_id"]); +// $vm_server_id = $app->functions->intval($this->dataRecord["server_id"]); + $vm_server_id = $app->functions->intval($this->dataRecord["vm_id"]); } else { $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'); $vm_server_id = $app->functions->intval($tmp['server_id']); -- GitLab