CS-15475:Not showing Add GuestNetwork Tab in Network in multi zone setup of advanced and basic zones together

This commit is contained in:
Pranav Saxena 2012-07-10 15:40:14 +05:30
parent 692e8fb98c
commit 9eebdd808d
1 changed files with 3 additions and 3 deletions

View File

@ -197,7 +197,7 @@
label: 'label.add.guest.network',
preFilter: function(args) {
var basicZoneExists = false;
var basicZoneExists = true; //Modifying the logic behind displaying the tabs depending on the networktype
$.ajax({
url: createURL("listZones"),
dataType: "json",
@ -206,8 +206,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; // For any occurence of an Advanced zone with any combination of basic zone , the add guest network tab will be displayed
return false; //break each loop
}
});