From: dbs Date: Mon, 28 Jan 2008 01:38:18 +0000 (+0000) Subject: Return null in the event the requested org setting doesn't exist, rather than errorin... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=eec158a1154a4351ba815ea25f2efa07390b0853;p=Evergreen.git Return null in the event the requested org setting doesn't exist, rather than erroring out. Credit berick for fixing this one. git-svn-id: svn://svn.open-ils.org/ILS/trunk@8507 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/web/opac/common/js/org_utils.js b/Open-ILS/web/opac/common/js/org_utils.js index 4fcd742449..0cba53293d 100644 --- a/Open-ILS/web/opac/common/js/org_utils.js +++ b/Open-ILS/web/opac/common/js/org_utils.js @@ -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; }