[open-ils-commits] r9787 -
trunk/Open-ILS/src/javascript/backend/circ
svn at svn.open-ils.org
svn at svn.open-ils.org
Sat Jun 7 08:37:24 EDT 2008
Author: erickson
Date: 2008-06-07 08:37:23 -0400 (Sat, 07 Jun 2008)
New Revision: 9787
Modified:
trunk/Open-ILS/src/javascript/backend/circ/circ_lib.js
Log:
protecting against null circmod count map
Modified: trunk/Open-ILS/src/javascript/backend/circ/circ_lib.js
===================================================================
--- trunk/Open-ILS/src/javascript/backend/circ/circ_lib.js 2008-06-07 12:37:17 UTC (rev 9786)
+++ trunk/Open-ILS/src/javascript/backend/circ/circ_lib.js 2008-06-07 12:37:23 UTC (rev 9787)
@@ -209,7 +209,8 @@
function checkoutsByCircModifier(userid) {
var key = scratchKey();
__OILS_FUNC_userCircsByCircmod(scratchPad(key), userid);
- return getScratch(key);
+ var val = getScratch(key);
+ return (val) ? val : {};
}
/* useful for testing */
More information about the open-ils-commits
mailing list