From ef09becd108feee08ae686d663464429f03aa2ec Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 13 Oct 2021 17:18:38 +0200 Subject: [PATCH] Bug 28445: delete_biblios is a boolean Will fix: Batch deletion failed: Cannot enqueue this job. (The error was: Can't use string ("on") as an ARRAY ref while "strict refs" in use at /kohadevbox/koha/Koha/BackgroundJob/BatchDeleteItem.pm line 214. , see the Koha log file for more information). Signed-off-by: Nick Clemens Signed-off-by: Tomas Cohen Arazi Signed-off-by: Jonathan Druart --- Koha/BackgroundJob/BatchDeleteItem.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/BackgroundJob/BatchDeleteItem.pm b/Koha/BackgroundJob/BatchDeleteItem.pm index 9fb6969e33..f506aff808 100644 --- a/Koha/BackgroundJob/BatchDeleteItem.pm +++ b/Koha/BackgroundJob/BatchDeleteItem.pm @@ -211,7 +211,7 @@ sub enqueue { return unless exists $args->{record_ids}; my @record_ids = @{ $args->{record_ids} }; - my $delete_biblios = @{ $args->{delete_biblios} || [] }; + my $delete_biblios = $args->{delete_biblios} || 0; $self->SUPER::enqueue( { -- 2.39.5