From: phasefx Date: Thu, 15 Jan 2009 18:03:40 +0000 (+0000) Subject: treat null result as an empty list X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=31143a23412ff9b846acc0b041e89e3aac67ef22;p=Evergreen.git treat null result as an empty list git-svn-id: svn://svn.open-ils.org/ILS/trunk@11846 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/xul/staff_client/server/patron/search_result.js b/Open-ILS/xul/staff_client/server/patron/search_result.js index 0a24859381..44ba0a0ae0 100644 --- a/Open-ILS/xul/staff_client/server/patron/search_result.js +++ b/Open-ILS/xul/staff_client/server/patron/search_result.js @@ -197,7 +197,8 @@ patron.search_result.prototype = { if (obj.search_term_count > 0) { //alert('search params = ' + obj.error.pretty_print( js2JSON( params ) ) ); results = this.network.simple_request( 'FM_AU_IDS_RETRIEVE_VIA_HASH', params ); - if ( (results == null) || (typeof results.ilsevent != 'undefined') ) throw(results); + if ( results == null ) results = []; + if (typeof results.ilsevent != 'undefined') throw(results); if (results.length == 0) { alert($("patronStrings").getString('staff.patron.search_result.search.no_patrons_found')); return;