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 <[email protected]> Authored: Mon Jul 14 15:48:09 2014 -0700 Committer: Brian Federle <[email protected]> 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;
