You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by hu...@apache.org on 2014/07/17 10:10:57 UTC

[13/39] git commit: updated refs/heads/vpc-toolkit-hugo to 34bed5f

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/vpc-toolkit-hugo
Commit: 36e5cc2b6a87d7d142edac9574e3faa13afb1253
Parents: 5143fe4
Author: Brian Federle <br...@citrix.com>
Authored: Mon Jul 14 15:48:09 2014 -0700
Committer: Brian Federle <br...@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;