Updated Branches:
  refs/heads/master b391a1c5b -> 4b57e7b60

CS-16002: Fix ACL list view when no networks present


Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/4b57e7b6
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/4b57e7b6
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/4b57e7b6

Branch: refs/heads/master
Commit: 4b57e7b6024d83e9629262fe7ca0db4200d6cea2
Parents: b391a1c
Author: Brian Federle <[email protected]>
Authored: Thu Aug 16 14:07:55 2012 -0700
Committer: Brian Federle <[email protected]>
Committed: Thu Aug 16 14:08:30 2012 -0700

----------------------------------------------------------------------
 ui/scripts/vpc.js |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/4b57e7b6/ui/scripts/vpc.js
----------------------------------------------------------------------
diff --git a/ui/scripts/vpc.js b/ui/scripts/vpc.js
index 8d79040..c046f28 100644
--- a/ui/scripts/vpc.js
+++ b/ui/scripts/vpc.js
@@ -553,8 +553,11 @@
                 vpcid: args.context.vpc[0].id
               },
               success: function(json) {
+                var networks = json.listnetworksresponse.network ?
+                  json.listnetworksresponse.network : [];
+
                 args.response.success({
-                  data: $.map(json.listnetworksresponse.network, 
function(tier) {
+                  data: $.map(networks, function(tier) {
                     var aclTotal = 0;
                     
                     // Get ACL total

Reply via email to