diff --git a/ui/scripts/system.js b/ui/scripts/system.js index 78201e0da89..24e18c67355 100644 --- a/ui/scripts/system.js +++ b/ui/scripts/system.js @@ -2907,6 +2907,7 @@ } }); + var networkOfferingObjsWithSG = []; var networkOfferingObjsWithoutSG = []; $.ajax({ url: createURL("listNetworkOfferings&state=Enabled&guestiptype=Shared"), @@ -2924,8 +2925,10 @@ break; } } - if(includingSGP == false) //withoutSG - networkOfferingObjsWithoutSG.push(this); + if(includingSGP == false) //without SG + networkOfferingObjsWithoutSG.push(this); + else //with SG + networkOfferingObjsWithSG.push(this); }); } }); @@ -2937,7 +2940,7 @@ networkOfferings: networkOfferingObjsWithoutSG, // Security group-enabled offerings - securityGroupNetworkOfferings: networkOfferingObjs + securityGroupNetworkOfferings: networkOfferingObjsWithSG }); },