From 4d00f372b9af7dcdd8bf560b2535d3c56d633211 Mon Sep 17 00:00:00 2001 From: erickson Date: Wed, 21 Oct 2009 14:36:34 +0000 Subject: [PATCH] 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 --- Open-ILS/src/c-apps/oils_cstore.c | 3 +++ 1 file changed, 3 insertions(+) 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" ); -- 2.11.0