propogating "select" clause via flesh
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 14 Aug 2006 12:47:51 +0000 (12:47 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 14 Aug 2006 12:47:51 +0000 (12:47 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@5483 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/c-apps/oils_cstore.c

index 85e9ef3..83b2d36 100644 (file)
@@ -1469,6 +1469,14 @@ jsonObject* doSearch(osrfMethodContext* ctx, osrfHash* meta, jsonObject* params,
                                                        );
                                                }
 
+                                               if (jsonObjectGetKey(order_hash, "select")) {
+                                                       jsonObjectSetKey(
+                                                               jsonObjectGetIndex(fake_params, 1),
+                                                               "select",
+                                                               jsonObjectClone(jsonObjectGetKey(order_hash, "select"))
+                                                       );
+                                               }
+
                                                jsonObject* kids = doSearch(ctx, kid_idl, fake_params, err);
 
                                                if(*err) {