[open-ils-commits] r12007 - trunk/Open-ILS/src/c-apps

svn at svn.open-ils.org svn at svn.open-ils.org
Wed Jan 28 14:02:06 EST 2009


Author: miker
Date: 2009-01-28 14:02:01 -0500 (Wed, 28 Jan 2009)
New Revision: 12007

Modified:
   trunk/Open-ILS/src/c-apps/oils_cstore.c
Log:
can not retrieve an object before we create it ... doh! (thanks, Laura, for catching this)

Modified: trunk/Open-ILS/src/c-apps/oils_cstore.c
===================================================================
--- trunk/Open-ILS/src/c-apps/oils_cstore.c	2009-01-28 02:17:38 UTC (rev 12006)
+++ trunk/Open-ILS/src/c-apps/oils_cstore.c	2009-01-28 19:02:01 UTC (rev 12007)
@@ -880,6 +880,8 @@
         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 );



More information about the open-ils-commits mailing list