[open-ils-commits] r8507 - trunk/Open-ILS/web/opac/common/js

svn at svn.open-ils.org svn at svn.open-ils.org
Sun Jan 27 21:05:26 EST 2008


Author: dbs
Date: 2008-01-27 20:38:18 -0500 (Sun, 27 Jan 2008)
New Revision: 8507

Modified:
   trunk/Open-ILS/web/opac/common/js/org_utils.js
Log:
Return null in the event the requested org setting doesn't exist, rather than erroring out.
Credit berick for fixing this one.


Modified: trunk/Open-ILS/web/opac/common/js/org_utils.js
===================================================================
--- trunk/Open-ILS/web/opac/common/js/org_utils.js	2008-01-28 00:09:49 UTC (rev 8506)
+++ trunk/Open-ILS/web/opac/common/js/org_utils.js	2008-01-28 01:38:18 UTC (rev 8507)
@@ -6,7 +6,7 @@
     var req = new Request(FETCH_ORG_SETTING, orgId, name);
     req.send(true);
     var res = req.result();
-    return res.value;
+    return (res) ? res.value : null;
 }
 
 



More information about the open-ils-commits mailing list