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

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


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

Modified:
   branches/rel_1_4/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_4/Open-ILS/src/c-apps/oils_cstore.c
===================================================================
--- branches/rel_1_4/Open-ILS/src/c-apps/oils_cstore.c	2009-10-21 14:37:44 UTC (rev 14522)
+++ branches/rel_1_4/Open-ILS/src/c-apps/oils_cstore.c	2009-10-21 14:37:55 UTC (rev 14523)
@@ -2741,9 +2741,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