[open-ils-commits] r17882 - branches/rel_2_0/Open-ILS/xul/staff_client/server/patron (phasefx)
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Sep 21 21:04:10 EDT 2010
Author: phasefx
Date: 2010-09-21 21:04:09 -0400 (Tue, 21 Sep 2010)
New Revision: 17882
Modified:
branches/rel_2_0/Open-ILS/xul/staff_client/server/patron/holds.js
Log:
handle null as a return result for an empty list
Modified: branches/rel_2_0/Open-ILS/xul/staff_client/server/patron/holds.js
===================================================================
--- branches/rel_2_0/Open-ILS/xul/staff_client/server/patron/holds.js 2010-09-22 01:03:19 UTC (rev 17881)
+++ branches/rel_2_0/Open-ILS/xul/staff_client/server/patron/holds.js 2010-09-22 01:04:09 UTC (rev 17882)
@@ -309,8 +309,10 @@
params: [ses()],
}
);
- if (typeof robj.ilsevent != 'undefined') { throw(robj); }
- print.simple( robj.template_output().data() );
+ if (robj != null) {
+ if (typeof robj.ilsevent != 'undefined') { throw(robj); }
+ print.simple( robj.template_output().data() );
+ }
} catch(E) {
obj.error.standard_unexpected_error_alert('cmd_holds_print_full',E);
}
More information about the open-ils-commits
mailing list