[open-ils-commits] r14520 - branches/rel_1_6/Open-ILS/src/c-apps (erickson)

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


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

Modified:
   branches/rel_1_6/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: branches/rel_1_6/Open-ILS/src/c-apps/oils_cstore.c
===================================================================
--- branches/rel_1_6/Open-ILS/src/c-apps/oils_cstore.c	2009-10-21 14:36:55 UTC (rev 14519)
+++ branches/rel_1_6/Open-ILS/src/c-apps/oils_cstore.c	2009-10-21 14:37:19 UTC (rev 14520)
@@ -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