From 25fa7d142b8bd11af94f0237ea23e51027a69534 Mon Sep 17 00:00:00 2001 From: miker Date: Mon, 15 Dec 2008 05:55:44 +0000 Subject: [PATCH] proper param format git-svn-id: svn://svn.open-ils.org/ILS/trunk@11561 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/c-apps/oils_cstore.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Open-ILS/src/c-apps/oils_cstore.c b/Open-ILS/src/c-apps/oils_cstore.c index 5ce326de95..11d4b7a787 100644 --- a/Open-ILS/src/c-apps/oils_cstore.c +++ b/Open-ILS/src/c-apps/oils_cstore.c @@ -855,7 +855,7 @@ static int verifyObjectPCRUD ( osrfMethodContext* ctx, const jsonObject* obj ) osrfLogDebug( OSRF_LOG_MARK, "global-level permissions required, fetching top of the org tree" ); // check for perm at top of org tree - jsonObject* _tmp_params = jsonParseString("{\"parent_ou\":null}"); + jsonObject* _tmp_params = jsonParseString("[{\"parent_ou\":null}]"); jsonObject* _list = doFieldmapperSearch(ctx, oilsIDLFindPath("/aou"), _tmp_params, &err); jsonObject* _tree_top = jsonObjectGetIndex(_list, 0); @@ -903,7 +903,7 @@ static int verifyObjectPCRUD ( osrfMethodContext* ctx, const jsonObject* obj ) pkey_value = jsonObjectToSimpleString( param ); osrfLogDebug( OSRF_LOG_MARK, "Object not supplied, using primary key value of %s and retrieving from the database", pkey_value ); - jsonObject* _tmp_params = jsonParseStringFmt("{\"%s\":\"%s\"}", pkey, pkey_value); + jsonObject* _tmp_params = jsonParseStringFmt("[{\"%s\":\"%s\"}]", pkey, pkey_value); jsonObject* _list = doFieldmapperSearch( ctx, class, @@ -969,7 +969,7 @@ static int verifyObjectPCRUD ( osrfMethodContext* ctx, const jsonObject* obj ) osrfLogDebug( OSRF_LOG_MARK, "%d foreign context fields(s) specified for class", ((osrfStringArray*)osrfHashGet(fcontext,"context"))->size, class_name); jsonObject* _tmp_params = jsonParseStringFmt( - "{\"%s\":\"%s\"}", + "[{\"%s\":\"%s\"}]", osrfHashGet(fcontext, "field"), oilsFMGetString(param, osrfHashGet(fcontext, "fkey")) ); -- 2.11.0