[open-ils-commits] r9786 - branches/rel_1_2/Open-ILS/src/javascript/backend/circ

svn at svn.open-ils.org svn at svn.open-ils.org
Sat Jun 7 08:37:18 EDT 2008


Author: erickson
Date: 2008-06-07 08:37:17 -0400 (Sat, 07 Jun 2008)
New Revision: 9786

Modified:
   branches/rel_1_2/Open-ILS/src/javascript/backend/circ/circ_lib.js
Log:
protecting against null circmod count map

Modified: branches/rel_1_2/Open-ILS/src/javascript/backend/circ/circ_lib.js
===================================================================
--- branches/rel_1_2/Open-ILS/src/javascript/backend/circ/circ_lib.js	2008-06-07 12:35:54 UTC (rev 9785)
+++ branches/rel_1_2/Open-ILS/src/javascript/backend/circ/circ_lib.js	2008-06-07 12:37:17 UTC (rev 9786)
@@ -208,7 +208,8 @@
 function checkoutsByCircModifier(userid) {
     var key = scratchKey();
     __OILS_FUNC_userCircsByCircmod(scratchPad(key), userid);
-    return getScratch(key);
+    var val = getScratch(key);
+    return (val) ? val : {};
 }
 
 



More information about the open-ils-commits mailing list