[open-ils-commits] r11846 - trunk/Open-ILS/xul/staff_client/server/patron
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Jan 15 13:03:43 EST 2009
Author: phasefx
Date: 2009-01-15 13:03:40 -0500 (Thu, 15 Jan 2009)
New Revision: 11846
Modified:
trunk/Open-ILS/xul/staff_client/server/patron/search_result.js
Log:
treat null result as an empty list
Modified: trunk/Open-ILS/xul/staff_client/server/patron/search_result.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/patron/search_result.js 2009-01-15 16:47:15 UTC (rev 11845)
+++ trunk/Open-ILS/xul/staff_client/server/patron/search_result.js 2009-01-15 18:03:40 UTC (rev 11846)
@@ -197,7 +197,8 @@
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;
More information about the open-ils-commits
mailing list