From: Bill Erickson Date: Wed, 16 May 2012 19:55:23 +0000 (-0400) Subject: Vandelay authority existing queue search repair X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=3a02ddaec1e6c7536c8771ea611e32df95816736;p=evergreen%2Fequinox.git Vandelay authority existing queue search repair When searching for an existing authority queue, search for an authority queue, not a bib queue. Apart from simply not working, the query will fail with an "invalid input value for enum vandelay.bib_queue_queue_type" and result in a client-side error. https://bugs.launchpad.net/evergreen/+bug/989391 Signed-off-by: Bill Erickson Signed-off-by: Lebbeous Fogle-Weekley --- diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Vandelay.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Vandelay.pm index 5c06e96d30..89a7d8daab 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Vandelay.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Vandelay.pm @@ -110,7 +110,7 @@ sub create_auth_queue { return $e->die_event unless $e->allowed('CREATE_AUTHORITY_IMPORT_QUEUE'); $owner ||= $e->requestor->id; - if ($e->search_vandelay_bib_queue({name => $name, owner => $owner, queue_type => $type})->[0]) { + if ($e->search_vandelay_authority_queue({name => $name, owner => $owner, queue_type => $type})->[0]) { $e->rollback; return OpenILS::Event->new('AUTH_QUEUE_EXISTS') }