From 0de40dd877defd4190c2ec45676c4f5261fc13f9 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 Signed-off-by: Agustin Moyano Signed-off-by: Jonathan Druart --- 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.39.5