From 9f02eefc49f977308c71b6efa682cbe583b4e404 Mon Sep 17 00:00:00 2001 From: miker Date: Fri, 9 Apr 2010 13:57:03 +0000 Subject: [PATCH] add id_list flag to the options hash of the search method in openils.PermaCrud git-svn-id: svn://svn.open-ils.org/ILS/trunk@16194 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/js/dojo/openils/PermaCrud.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Open-ILS/web/js/dojo/openils/PermaCrud.js b/Open-ILS/web/js/dojo/openils/PermaCrud.js index 3b49a03044..6213c8f67d 100644 --- a/Open-ILS/web/js/dojo/openils/PermaCrud.js +++ b/Open-ILS/web/js/dojo/openils/PermaCrud.js @@ -152,6 +152,7 @@ if(!dojo._hasResource["openils.PermaCrud"]) { }, search : function ( fm_class /* Fieldmapper class hint */, search /* Fieldmapper query object */, opts /* Option hash */) { + var return_type = 'search'; if(!opts) opts = {}; var order_by = {}; if (opts.order_by) order_by.order_by = opts.order_by; @@ -159,8 +160,9 @@ if(!dojo._hasResource["openils.PermaCrud"]) { if (opts.limit) order_by.limit = opts.limit; if (opts.offset) order_by.offset = opts.offset; if (opts.join) order_by.join = opts.join; + if (opts.id_list) return_type = 'id_list'; - var method = 'open-ils.pcrud.search.' + fm_class; + var method = 'open-ils.pcrud.' + return_type + '.' + fm_class; if(!opts.streaming) method += '.atomic'; var req_hash = dojo.mixin( -- 2.11.0