[open-ils-commits] r8013 - branches/rel_1_2/Open-ILS/web/reports

svn at svn.open-ils.org svn at svn.open-ils.org
Mon Nov 5 19:47:22 EST 2007


Author: erickson
Date: 2007-11-05 19:31:53 -0500 (Mon, 05 Nov 2007)
New Revision: 8013

Modified:
   branches/rel_1_2/Open-ILS/web/reports/oils_rpt.js
Log:
protecting against the case where the key is not a string.  i.e. in some cases, it can be an array of values

Modified: branches/rel_1_2/Open-ILS/web/reports/oils_rpt.js
===================================================================
--- branches/rel_1_2/Open-ILS/web/reports/oils_rpt.js	2007-11-06 00:30:55 UTC (rev 8012)
+++ branches/rel_1_2/Open-ILS/web/reports/oils_rpt.js	2007-11-06 00:31:53 UTC (rev 8013)
@@ -162,7 +162,7 @@
 		var key = node[op];
 
         /** if this is a dynamic param, skip it */
-        if( key && key.match(/::.*/) ) continue;
+        if( key && (key+'').match(/::.*/) ) continue;
 
 		_debug("template params: op = " + op + ", value = " + js2JSON(key));
 



More information about the open-ils-commits mailing list