nodeValue not working to find source def sql in the IDL. at least, not with xulrunne...
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 13 May 2010 21:31:57 +0000 (21:31 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 13 May 2010 21:31:57 +0000 (21:31 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16434 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/reports/xul/template-config.js

index c72758f..46c66ac 100644 (file)
@@ -45,7 +45,8 @@ function removeReportAtom (args) {
 
 function getSourceDefinition(class) {
        var class_obj = getIDLClass(class);
-       return class_obj.getAttributeNS(persistNS,'tablename') || '(' + class_obj.getElementsByTagNameNS(persistNS,'source_definition')[0].nodeValue + ')';
+       return class_obj.getAttributeNS(persistNS,'tablename') || 
+        '(' + class_obj.getElementsByTagNameNS(persistNS,'source_definition')[0].textContent + ')';
 }
 
 function addReportAtoms () {