From: erickson Date: Wed, 21 Oct 2009 14:36:34 +0000 (+0000) Subject: repaired bug in cstore 'might_have' fleshing which lead to fleshing the same object... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=4d00f372b9af7dcdd8bf560b2535d3c56d633211;p=evergreen%2Fmasslnc.git repaired bug in cstore 'might_have' fleshing which lead to fleshing the same object into itself git-svn-id: svn://svn.open-ils.org/ILS/trunk@14518 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/c-apps/oils_cstore.c b/Open-ILS/src/c-apps/oils_cstore.c index 81ed19e9be..f8836d16df 100644 --- a/Open-ILS/src/c-apps/oils_cstore.c +++ b/Open-ILS/src/c-apps/oils_cstore.c @@ -4743,9 +4743,12 @@ static jsonObject* doFieldmapperSearch ( osrfMethodContext* ctx, osrfHash* meta, 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" );