[open-ils-commits] r17881 - trunk/Open-ILS/xul/staff_client/server/patron (phasefx)

svn at svn.open-ils.org svn at svn.open-ils.org
Tue Sep 21 21:03:20 EDT 2010


Author: phasefx
Date: 2010-09-21 21:03:19 -0400 (Tue, 21 Sep 2010)
New Revision: 17881

Modified:
   trunk/Open-ILS/xul/staff_client/server/patron/holds.js
Log:
handle null as a return result for an empty list


Modified: trunk/Open-ILS/xul/staff_client/server/patron/holds.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/patron/holds.js	2010-09-22 00:56:44 UTC (rev 17880)
+++ trunk/Open-ILS/xul/staff_client/server/patron/holds.js	2010-09-22 01:03:19 UTC (rev 17881)
@@ -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