From 782c3e643abe6ebd57889ef218d597d4ca1b3188 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). --- 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 9fb6969e33e..f506aff8082 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.25.1