From 1c5d32fbda9c9889a4fcef29a7512525213ccd50 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 --- 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.33.1