[open-ils-commits] r14524 - branches/rel_1_4_0/Open-ILS/src/c-apps (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Oct 21 10:38:13 EDT 2009
Author: erickson
Date: 2009-10-21 10:38:11 -0400 (Wed, 21 Oct 2009)
New Revision: 14524
Modified:
branches/rel_1_4_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: branches/rel_1_4_0/Open-ILS/src/c-apps/oils_cstore.c
===================================================================
--- branches/rel_1_4_0/Open-ILS/src/c-apps/oils_cstore.c 2009-10-21 14:37:55 UTC (rev 14523)
+++ branches/rel_1_4_0/Open-ILS/src/c-apps/oils_cstore.c 2009-10-21 14:38:11 UTC (rev 14524)
@@ -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