From eec158a1154a4351ba815ea25f2efa07390b0853 Mon Sep 17 00:00:00 2001 From: dbs Date: Mon, 28 Jan 2008 01:38:18 +0000 Subject: [PATCH] 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 --- Open-ILS/web/opac/common/js/org_utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.11.0