Z39.50 Batch Search/Overlay ML repair z39-batch-fetch-overlay-rebase-lfw
authorBill Erickson <berick@esilibrary.com>
Thu, 14 Mar 2013 18:51:58 +0000 (14:51 -0400)
committerBill Erickson <berick@esilibrary.com>
Thu, 14 Mar 2013 18:51:58 +0000 (14:51 -0400)
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 <berick@esilibrary.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/Search/Z3950.pm

index f9c88df..a730bed 100644 (file)
@@ -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)) {