From 49517bdf0da4502c626e7e28b2240bf42a782dc7 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Tue, 31 Jan 2012 15:59:41 -0500 Subject: [PATCH] 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 --- Open-ILS/web/js/ui/default/acq/common/vlagent.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 2.11.0