From: miker Date: Mon, 15 Dec 2008 13:49:27 +0000 (+0000) Subject: give doFieldmapperSearch the proper class hash for foreign links X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=40254f1aba1c2fc23caa5e1d9dbe1587cc93ae57;p=Evergreen.git give doFieldmapperSearch the proper class hash for foreign links git-svn-id: svn://svn.open-ils.org/ILS/trunk@11568 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/c-apps/oils_cstore.c b/Open-ILS/src/c-apps/oils_cstore.c index b0d38d630d..addd6f6175 100644 --- a/Open-ILS/src/c-apps/oils_cstore.c +++ b/Open-ILS/src/c-apps/oils_cstore.c @@ -856,7 +856,7 @@ static int verifyObjectPCRUD ( osrfMethodContext* ctx, const jsonObject* obj ) // 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 @@ static int verifyObjectPCRUD ( osrfMethodContext* ctx, const jsonObject* obj ) 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 @@ static int verifyObjectPCRUD ( osrfMethodContext* ctx, const jsonObject* obj ) jsonObject* _list = doFieldmapperSearch( ctx, + osrfHashGet( oilsIDL(), class_name ), class, _tmp_params, &err