[open-ils-commits] r13575 - branches/rel_1_6/Open-ILS/web/reports/xul (dbs)
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Jul 13 12:26:01 EDT 2009
Author: dbs
Date: 2009-07-13 12:25:59 -0400 (Mon, 13 Jul 2009)
New Revision: 13575
Modified:
branches/rel_1_6/Open-ILS/web/reports/xul/source-setup.js
branches/rel_1_6/Open-ILS/web/reports/xul/utilities.js
Log:
Merge r13574 from trunk: fix for reporter due to removal of virtual attribute
Modified: branches/rel_1_6/Open-ILS/web/reports/xul/source-setup.js
===================================================================
--- branches/rel_1_6/Open-ILS/web/reports/xul/source-setup.js 2009-07-13 16:23:59 UTC (rev 13574)
+++ branches/rel_1_6/Open-ILS/web/reports/xul/source-setup.js 2009-07-13 16:25:59 UTC (rev 13575)
@@ -240,7 +240,7 @@
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');
Modified: branches/rel_1_6/Open-ILS/web/reports/xul/utilities.js
===================================================================
--- branches/rel_1_6/Open-ILS/web/reports/xul/utilities.js 2009-07-13 16:23:59 UTC (rev 13574)
+++ branches/rel_1_6/Open-ILS/web/reports/xul/utilities.js 2009-07-13 16:25:59 UTC (rev 13575)
@@ -80,4 +80,11 @@
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;
+}
More information about the open-ils-commits
mailing list