protecting against the case where the key is not a string. i.e. in some cases, it...
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 6 Nov 2007 00:31:53 +0000 (00:31 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 6 Nov 2007 00:31:53 +0000 (00:31 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_2@8013 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/reports/oils_rpt.js

index ee5b540..ba542ff 100644 (file)
@@ -162,7 +162,7 @@ oilsReport.prototype.__gatherTemplateParams = function(arr, type) {
                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));