for bug 6153 - prevent startIP being passed twice to UpdatePod API.

This commit is contained in:
Jessica Wang 2010-09-21 19:37:32 -07:00
parent d117da5f7d
commit 2e98f2c41d

View File

@ -597,7 +597,9 @@ function showConfigurationTab() {
if(newStartip != oldStartip)
array1.push("&startIp="+encodeURIComponent(newStartip));
if(newEndip != oldEndip && newEndip != null && newEndip.length > 0) {
if(newStartip == oldStartip) {
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)