From feb4095707818baf445a1d26d6e9e76dc0eaff27 Mon Sep 17 00:00:00 2001 From: dbs Date: Mon, 13 Jul 2009 16:26:23 +0000 Subject: [PATCH] Merge r13574 from trunk: fix for reporter due to removal of virtual attribute git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_6_0@13576 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/reports/xul/source-setup.js | 2 +- Open-ILS/web/reports/xul/utilities.js | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Open-ILS/web/reports/xul/source-setup.js b/Open-ILS/web/reports/xul/source-setup.js index 018e1019fd..7a9ca848e2 100644 --- a/Open-ILS/web/reports/xul/source-setup.js +++ b/Open-ILS/web/reports/xul/source-setup.js @@ -240,7 +240,7 @@ function populateDetailTree (tcNode, c, item) { var fullpath = item.getAttribute('fullpath'); var reltype = item.getAttribute('reltype'); - var fields = filterByAttributeNS(c.getElementsByTagName('field'),persistNS, 'virtual','false'); + var fields = nodelistToArray(c.getElementsByTagName('field')); fields.sort( sortLabels ); var id = c.getAttribute('id'); diff --git a/Open-ILS/web/reports/xul/utilities.js b/Open-ILS/web/reports/xul/utilities.js index a7ad73cd15..c8fc7941a6 100644 --- a/Open-ILS/web/reports/xul/utilities.js +++ b/Open-ILS/web/reports/xul/utilities.js @@ -80,4 +80,11 @@ function getKeys (hash) { return k; } - +/* This just lets us return an array consistent with the filterBy* functions */ +function nodelistToArray (nodes) { + var aResponse = []; + for ( var i = 0; i < nodes.length; i++ ) { + aResponse.push(nodes[i]); + } + return aResponse; +} -- 2.11.0