changing undef params to null to prevent so much error logging
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 31 Aug 2006 00:01:18 +0000 (00:01 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 31 Aug 2006 00:01:18 +0000 (00:01 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@5791 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/opac/common/js/RemoteRequest.js

index d532691..164f69f 100644 (file)
@@ -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;