From: Bill Erickson Date: Tue, 31 Jan 2012 20:59:41 +0000 (-0500) Subject: ACQ+Vandelay limit upload queue selector to ACQ queues X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=49517bdf0da4502c626e7e28b2240bf42a782dc7;p=contrib%2FConifer.git ACQ+Vandelay limit upload queue selector to ACQ queues When uploading bibs to vandelay queues from ACQ interfaces, only allow records to be added to queues tagged as 'acq' queues (or to new 'acq' queues). Signed-off-by: Bill Erickson Signed-off-by: Ben Shum --- diff --git a/Open-ILS/web/js/ui/default/acq/common/vlagent.js b/Open-ILS/web/js/ui/default/acq/common/vlagent.js index e7c5b054ac..8444b9cfc7 100644 --- a/Open-ILS/web/js/ui/default/acq/common/vlagent.js +++ b/Open-ILS/web/js/ui/default/acq/common/vlagent.js @@ -33,7 +33,8 @@ function VLAgent(args) { fmClass : widg.cls, selfReference : true, orgLimitPerms : [self.limitPerm || 'CREATE_PURCHASE_ORDER'], - parentNode : dojo.byId('acq_vl:' + widg.key) + parentNode : dojo.byId('acq_vl:' + widg.key), + searchFilter : (widg.cls == 'vbq') ? {queue_type : 'acq'} : null }).build(function(dijit) { widg.dijit = dijit; self.attachOnChange(widg);