[open-ils-commits] r10731 - trunk/Open-ILS/src/c-apps
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Sep 29 16:43:28 EDT 2008
Author: erickson
Date: 2008-09-29 16:43:23 -0400 (Mon, 29 Sep 2008)
New Revision: 10731
Modified:
trunk/Open-ILS/src/c-apps/oils_utils.c
Log:
fixed bug in org setting value parsing. now calling ancestor default method to search up org tree for settings. in particular, this will effect opac timeout settings
Modified: trunk/Open-ILS/src/c-apps/oils_utils.c
===================================================================
--- trunk/Open-ILS/src/c-apps/oils_utils.c 2008-09-29 19:06:16 UTC (rev 10730)
+++ trunk/Open-ILS/src/c-apps/oils_utils.c 2008-09-29 20:43:23 UTC (rev 10731)
@@ -165,19 +165,17 @@
char* oilsUtilsFetchOrgSetting( int orgid, const char* setting ) {
if(!setting) return NULL;
- jsonObject* params = jsonParseStringFmt(
- "[{ \"org_unit\": %d, \"name\":\"%s\" }]", orgid, setting );
+ jsonObject* params = jsonParseStringFmt("[%d, \"%s\"]", orgid, setting );
jsonObject* set = oilsUtilsQuickReq(
- "open-ils.storage",
- "open-ils.storage.direct.actor.org_unit_setting.search_where", params );
+ "open-ils.actor",
+ "open-ils.actor.ou_setting.ancestor_default", params);
+ char* value = jsonObjectToSimpleString(jsonObjectGetKey(set, "value"));
jsonObjectFree(params);
- char* value = oilsFMGetString( set, "value" );
jsonObjectFree(set);
osrfLogDebug(OSRF_LOG_MARK, "Fetched org [%d] setting: %s => %s", orgid, setting, value);
return value;
-
}
More information about the open-ils-commits
mailing list