Return null in the event the requested org setting doesn't exist, rather than errorin...
authordbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 28 Jan 2008 01:38:18 +0000 (01:38 +0000)
committerdbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 28 Jan 2008 01:38:18 +0000 (01:38 +0000)
Credit berick for fixing this one.

git-svn-id: svn://svn.open-ils.org/ILS/trunk@8507 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/opac/common/js/org_utils.js

index 4fcd742..0cba532 100644 (file)
@@ -6,7 +6,7 @@ function fetchOrgSettingDefault(orgId, name) {
     var req = new Request(FETCH_ORG_SETTING, orgId, name);
     req.send(true);
     var res = req.result();
-    return res.value;
+    return (res) ? res.value : null;
 }