From bd6a12cc0d846a2ef441ad10eb3630addb025dc3 Mon Sep 17 00:00:00 2001 From: miker Date: Wed, 28 Jan 2009 19:02:01 +0000 Subject: [PATCH] can not retrieve an object before we create it ... doh! (thanks, Laura, for catching this) git-svn-id: svn://svn.open-ils.org/ILS/trunk@12007 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/c-apps/oils_cstore.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Open-ILS/src/c-apps/oils_cstore.c b/Open-ILS/src/c-apps/oils_cstore.c index cf56c8c293..38d9f67a00 100644 --- a/Open-ILS/src/c-apps/oils_cstore.c +++ b/Open-ILS/src/c-apps/oils_cstore.c @@ -880,6 +880,8 @@ static int verifyObjectPCRUD ( osrfMethodContext* ctx, const jsonObject* obj ) free(method_type); method_type = strdup("retrieve"); fetch = 0; // don't go to the db for the object for retrieve-type methods + } else if ( *method_type == 'c' ) { + fetch = 0; // CAN'T go to the db for the object for create-type methods } osrfHash* pcrud = osrfHashGet( osrfHashGet(class, "permacrud"), method_type ); -- 2.11.0