CS-15475: Not showing "Add GuestNetwork" Tab in Network in multi zone setup(basic/advance)

Reviewed-By:Sanjay
This commit is contained in:
Pranav Saxena 2012-07-10 17:27:48 +05:30
parent 9ea905b620
commit 8a0b910194
1 changed files with 3 additions and 3 deletions

View File

@ -193,7 +193,7 @@
label: 'label.add.guest.network',
preFilter: function(args) {
var basicZoneExists = false;
var basicZoneExists = true;
$.ajax({
url: createURL("listZones"),
dataType: "json",
@ -202,8 +202,8 @@
if(json.listzonesresponse.zone != null && json.listzonesresponse.zone.length > 0) {
zoneObjs = json.listzonesresponse.zone;
$(zoneObjs).each(function() {
if(this.networktype == "Basic") {
basicZoneExists = true;
if(this.networktype == "Advanced") {
basicZoneExists = false; // Modifying the logic for displaying the add network tab if we have a multi zone installation (advanced/basic)
return false; //break each loop
}
});