[open-ils-commits] r14518 - trunk/Open-ILS/src/c-apps (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Oct 21 10:36:36 EDT 2009
Author: erickson
Date: 2009-10-21 10:36:34 -0400 (Wed, 21 Oct 2009)
New Revision: 14518
Modified:
trunk/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: trunk/Open-ILS/src/c-apps/oils_cstore.c
===================================================================
--- trunk/Open-ILS/src/c-apps/oils_cstore.c 2009-10-21 13:28:16 UTC (rev 14517)
+++ trunk/Open-ILS/src/c-apps/oils_cstore.c 2009-10-21 14:36:34 UTC (rev 14518)
@@ -4743,9 +4743,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