From 40ba952c4b0b8af905d4181d577618409560965a Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Thu, 14 Mar 2013 14:51:58 -0400 Subject: [PATCH] Z39.50 Batch Search/Overlay ML repair Avoid setting the bucket match-set value when the value is "", which results in a value of '0' in the database. Signed-off-by: Bill Erickson --- Open-ILS/src/perlmods/lib/OpenILS/Application/Search/Z3950.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Search/Z3950.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Search/Z3950.pm index f9c88df6b0..a730bedb6c 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Search/Z3950.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Search/Z3950.pm @@ -638,7 +638,8 @@ sub create_z39_bucket_queue { $queue->match_bucket($bucket_id); $queue->owner($e->requestor->id); $queue->name($vandelay->{queue_name}); - $queue->match_set($vandelay->{match_set}); + $queue->match_set($vandelay->{match_set}) + if $vandelay->{match_set}; # avoid "" $e->xact_begin; unless ($e->create_vandelay_bib_queue($queue)) { -- 2.11.0