From: erickson Date: Tue, 6 Nov 2007 00:30:55 +0000 (+0000) Subject: protecting against the case where the key is not a string. i.e. in some cases, it... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=05787714a7c964af6f438236529d3c8317e667b9;p=Evergreen.git protecting against the case where the key is not a string. i.e. in some cases, it can be an array of values git-svn-id: svn://svn.open-ils.org/ILS/trunk@8012 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/web/reports/oils_rpt.js b/Open-ILS/web/reports/oils_rpt.js index ee5b5404a6..ba542ffb03 100644 --- a/Open-ILS/web/reports/oils_rpt.js +++ b/Open-ILS/web/reports/oils_rpt.js @@ -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));