From: Bill Erickson Date: Thu, 22 Mar 2012 15:53:55 +0000 (-0400) Subject: PermaCrud.js flesh support X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=bf91e76a5aa38bfeae0c63ed1d2d27943051fb5d;p=evergreen%2Fpines.git PermaCrud.js flesh support Now that open-ils.pcrud supports fleshing, allow flesh params to pass through PermaCrud.js Signed-off-by: Bill Erickson Signed-off-by: Mike Rylander --- diff --git a/Open-ILS/web/js/dojo/openils/PermaCrud.js b/Open-ILS/web/js/dojo/openils/PermaCrud.js index 1869248ddc..ca3835772e 100644 --- a/Open-ILS/web/js/dojo/openils/PermaCrud.js +++ b/Open-ILS/web/js/dojo/openils/PermaCrud.js @@ -148,6 +148,8 @@ 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.flesh) order_by.flesh = opts.flesh; + if (opts.flesh_fields) order_by.flesh_fields = opts.flesh_fields; var method = 'open-ils.pcrud.search.' + fm_class; if(!opts.streaming) method += '.atomic'; @@ -196,6 +198,8 @@ 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.flesh) order_by.flesh = opts.flesh; + if (opts.flesh_fields) order_by.flesh_fields = opts.flesh_fields; if (opts.id_list) return_type = 'id_list'; var method = 'open-ils.pcrud.' + return_type + '.' + fm_class;