From 77f26741aaf65c0d5bc26031d3920f160b8cd93d Mon Sep 17 00:00:00 2001 From: erickson Date: Thu, 31 Aug 2006 00:01:18 +0000 Subject: [PATCH] changing undef params to null to prevent so much error logging git-svn-id: svn://svn.open-ils.org/ILS/trunk@5791 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/opac/common/js/RemoteRequest.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Open-ILS/web/opac/common/js/RemoteRequest.js b/Open-ILS/web/opac/common/js/RemoteRequest.js index d53269112b..164f69f25d 100644 --- a/Open-ILS/web/opac/common/js/RemoteRequest.js +++ b/Open-ILS/web/opac/common/js/RemoteRequest.js @@ -266,6 +266,13 @@ RemoteRequest.prototype.send = function(blocking) { } catch(e) {} + if(data && data.match(/param=undefined/)) { + /* we get a bogus param .. replace with NULL */ + try{dump('!+! UNDEFINED PARAM IN QUERY: ' + this.service + ' : ' + this.method+'\n');}catch(r){} + data = data.replace(/param=undefined/g,'param=null'); + } + + try{ this.xmlhttp.send( data ); } catch(e){} this.sendCount += 1; -- 2.43.2