repaired bug in cstore 'might_have' fleshing which lead to fleshing the same object...
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 21 Oct 2009 14:36:34 +0000 (14:36 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 21 Oct 2009 14:36:34 +0000 (14:36 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@14518 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/c-apps/oils_cstore.c

index 81ed19e..f8836d1 100644 (file)
@@ -4743,9 +4743,12 @@ static jsonObject* doFieldmapperSearch ( osrfMethodContext* ctx, osrfHash* meta,
                                                        value_field = osrfHashGet( fields, osrfHashGet(meta, "primarykey") );
                                                }
                                                        
+                        /* This causes 'might_have' fleshing to flesh the base object onto itself as 
+                         * opposed to the linked object when fleshing a self-referential foreign key
                                                if (!(strcmp( osrfHashGet(kid_link, "reltype"), "might_have" ))) { // might_have
                                                        value_field = osrfHashGet( fields, osrfHashGet(meta, "primarykey") );
                                                }
+                        */
 
                                                osrfStringArray* link_map = osrfHashGet( kid_link, "map" );