[open-ils-commits] r9785 - branches/rel_1_2_2/Open-ILS/src/javascript/backend/circ

svn at svn.open-ils.org svn at svn.open-ils.org
Sat Jun 7 08:35:55 EDT 2008


Author: erickson
Date: 2008-06-07 08:35:54 -0400 (Sat, 07 Jun 2008)
New Revision: 9785

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

Modified: branches/rel_1_2_2/Open-ILS/src/javascript/backend/circ/circ_lib.js
===================================================================
--- branches/rel_1_2_2/Open-ILS/src/javascript/backend/circ/circ_lib.js	2008-06-07 02:24:58 UTC (rev 9784)
+++ branches/rel_1_2_2/Open-ILS/src/javascript/backend/circ/circ_lib.js	2008-06-07 12:35:54 UTC (rev 9785)
@@ -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