From: erickson Date: Wed, 21 Oct 2009 14:37:55 +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=ec6868ee127daf30e74132ee606854b4e0f88c67;p=Evergreen.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/branches/rel_1_4@14523 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 00e0a7c148..487a385ce5 100644 --- a/Open-ILS/src/c-apps/oils_cstore.c +++ b/Open-ILS/src/c-apps/oils_cstore.c @@ -2741,9 +2741,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" );