[open-ils-commits] r14522 - tags/rel_1_6_0_0/Open-ILS/src/c-apps (erickson)

svn at svn.open-ils.org svn at svn.open-ils.org
Wed Oct 21 10:37:46 EDT 2009


Author: erickson
Date: 2009-10-21 10:37:44 -0400 (Wed, 21 Oct 2009)
New Revision: 14522

Modified:
   tags/rel_1_6_0_0/Open-ILS/src/c-apps/oils_cstore.c
Log:
repaired bug in cstore 'might_have' fleshing which lead to fleshing the same object into itself

Modified: tags/rel_1_6_0_0/Open-ILS/src/c-apps/oils_cstore.c
===================================================================
--- tags/rel_1_6_0_0/Open-ILS/src/c-apps/oils_cstore.c	2009-10-21 14:37:28 UTC (rev 14521)
+++ tags/rel_1_6_0_0/Open-ILS/src/c-apps/oils_cstore.c	2009-10-21 14:37:44 UTC (rev 14522)
@@ -4328,9 +4328,12 @@
 							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" );
 



More information about the open-ils-commits mailing list