[open-ils-commits] r11568 - trunk/Open-ILS/src/c-apps
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Dec 15 08:49:28 EST 2008
Author: miker
Date: 2008-12-15 08:49:27 -0500 (Mon, 15 Dec 2008)
New Revision: 11568
Modified:
trunk/Open-ILS/src/c-apps/oils_cstore.c
Log:
give doFieldmapperSearch the proper class hash for foreign links
Modified: trunk/Open-ILS/src/c-apps/oils_cstore.c
===================================================================
--- trunk/Open-ILS/src/c-apps/oils_cstore.c 2008-12-15 13:37:51 UTC (rev 11567)
+++ trunk/Open-ILS/src/c-apps/oils_cstore.c 2008-12-15 13:49:27 UTC (rev 11568)
@@ -856,7 +856,7 @@
// check for perm at top of org tree
jsonObject* _tmp_params = jsonParseString("[{\"parent_ou\":null}]");
- jsonObject* _list = doFieldmapperSearch(ctx, oilsIDLFindPath("/aou"), _tmp_params, &err);
+ jsonObject* _list = doFieldmapperSearch(ctx, osrfHashGet( oilsIDL(), "aou" ), _tmp_params, &err);
jsonObject* _tree_top = jsonObjectGetIndex(_list, 0);
@@ -966,7 +966,7 @@
while ( (class_name = osrfStringArrayGetString(class_list, i++)) ) {
osrfHash* fcontext = osrfHashGet(foreign_context, class_name);
- osrfLogDebug( OSRF_LOG_MARK, "%d foreign context fields(s) specified for class", ((osrfStringArray*)osrfHashGet(fcontext,"context"))->size, class_name);
+ osrfLogDebug( OSRF_LOG_MARK, "%d foreign context fields(s) specified for class %s", ((osrfStringArray*)osrfHashGet(fcontext,"context"))->size, class_name);
jsonObject* _tmp_params = jsonParseStringFmt(
"[{\"%s\":\"%s\"}]",
@@ -976,6 +976,7 @@
jsonObject* _list = doFieldmapperSearch(
ctx,
+ osrfHashGet( oilsIDL(), class_name ),
class,
_tmp_params,
&err
More information about the open-ils-commits
mailing list