From cbd33012c0915ae7e34cc866d27d2437690af93d Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Thu, 20 Aug 2020 10:36:23 +0000 Subject: [PATCH] Bug 19889: (QA follow-up) Check that exclude from local holds priority is set and not a blank string --- tools/batchMod.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/batchMod.pl b/tools/batchMod.pl index bcf509d537..83a052b318 100755 --- a/tools/batchMod.pl +++ b/tools/batchMod.pl @@ -241,7 +241,7 @@ if ($op eq "action") { } else { my $modified_holds_priority = 0; - if (defined $exclude_from_local_holds_priority) { + if ( defined $exclude_from_local_holds_priority && $exclude_from_local_holds_priority ne "" ) { if(!defined $item->exclude_from_local_holds_priority || $item->exclude_from_local_holds_priority != $exclude_from_local_holds_priority) { $item->exclude_from_local_holds_priority($exclude_from_local_holds_priority)->store; $modified_holds_priority = 1; -- 2.11.0