diff --git a/ui/scripts/system.js b/ui/scripts/system.js index 1c1fab11514..aa7e68b2cfc 100644 --- a/ui/scripts/system.js +++ b/ui/scripts/system.js @@ -3388,7 +3388,8 @@ array1.push("&name=" +todb(args.data.name)); array1.push("&dns1=" + todb(args.data.dns1)); array1.push("&dns2=" + todb(args.data.dns2)); //dns2 can be empty ("") when passed to API - array1.push("&guestcidraddress=" +todb(args.data.guestcidraddress)); + if(selectedZoneObj.networktype == "Advanced"){ + array1.push("&guestcidraddress=" +todb(args.data.guestcidraddress)); } array1.push("&internaldns1=" + todb(args.data.internaldns1)); array1.push("&internaldns2=" + todb(args.data.internaldns2)); //internaldns2 can be empty ("") when passed to API array1.push("&domain=" + todb(args.data.domain));