From d117da5f7d73b30033303e56e5aa185cd7dfa2c0 Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Tue, 21 Sep 2010 19:30:39 -0700 Subject: [PATCH] fix bug 6153 - when editing a private IP range, just modifying the ending of the IP range will throw an error. --- ui/scripts/cloud.core.configuration.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/scripts/cloud.core.configuration.js b/ui/scripts/cloud.core.configuration.js index 2d122d5f6ad..4ec000bcc7b 100644 --- a/ui/scripts/cloud.core.configuration.js +++ b/ui/scripts/cloud.core.configuration.js @@ -596,8 +596,10 @@ function showConfigurationTab() { array1.push("&cidr="+encodeURIComponent(newCidr)); if(newStartip != oldStartip) array1.push("&startIp="+encodeURIComponent(newStartip)); - if(newEndip != oldEndip && newEndip != null && newEndip.length > 0) + if(newEndip != oldEndip && newEndip != null && newEndip.length > 0) { + array1.push("&startIp="+encodeURIComponent(newStartip)); //startIp needs to be passed to updatePod API when endIp is passed to updatePod API. array1.push("&endIp="+encodeURIComponent(newEndip)); + } if(newGateway != oldGateway && newGateway != null && newGateway.length > 0) array1.push("&gateway="+encodeURIComponent(newGateway));