cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bfede...@apache.org
Subject git commit: updated refs/heads/master to 36e5cc2
Date Mon, 14 Jul 2014 22:50:01 GMT
Repository: cloudstack
Updated Branches:
  refs/heads/master 5143fe404 -> 36e5cc2b6


Fix for non-grouped detail view

Fix issue where non-grouped detail page (i.e., instances stats page)
doesn't load due to the fields being passed as an object, not an array.


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

Branch: refs/heads/master
Commit: 36e5cc2b6a87d7d142edac9574e3faa13afb1253
Parents: 5143fe4
Author: Brian Federle <brian.federle@citrix.com>
Authored: Mon Jul 14 15:48:09 2014 -0700
Committer: Brian Federle <brian.federle@citrix.com>
Committed: Mon Jul 14 15:49:07 2014 -0700

----------------------------------------------------------------------
 ui/scripts/ui/widgets/detailView.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/36e5cc2b/ui/scripts/ui/widgets/detailView.js
----------------------------------------------------------------------
diff --git a/ui/scripts/ui/widgets/detailView.js b/ui/scripts/ui/widgets/detailView.js
index 8824adc..0fa3fd0 100644
--- a/ui/scripts/ui/widgets/detailView.js
+++ b/ui/scripts/ui/widgets/detailView.js
@@ -910,7 +910,7 @@
         var isOddRow = false; // Even/odd row coloring
         var $header;
         var detailViewArgs = $detailView.data('view-args');
-        var fields = tabData.fields.slice();
+        var fields = $.isArray(tabData.fields) ? tabData.fields.slice() : tabData.fields;
         var hiddenFields;
         var context = $.extend(true, {}, detailViewArgs ? detailViewArgs.context : cloudStack.context);
         var isMultiple = tabData.multiple || tabData.isMultiple;


Mime
View raw message