[open-ils-commits] r8861 -
branches/rel_1_2/Open-ILS/web/opac/common/js
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Mar 4 16:09:39 EST 2008
Author: erickson
Date: 2008-03-04 15:37:23 -0500 (Tue, 04 Mar 2008)
New Revision: 8861
Modified:
branches/rel_1_2/Open-ILS/web/opac/common/js/org_utils.js
Log:
protecting against null org settings
Modified: branches/rel_1_2/Open-ILS/web/opac/common/js/org_utils.js
===================================================================
--- branches/rel_1_2/Open-ILS/web/opac/common/js/org_utils.js 2008-03-04 18:09:48 UTC (rev 8860)
+++ branches/rel_1_2/Open-ILS/web/opac/common/js/org_utils.js 2008-03-04 20:37:23 UTC (rev 8861)
@@ -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;
}
/* takes an org unit or id and return the numeric depth */
More information about the open-ils-commits
mailing list