Bug 28445: delete_biblios is a boolean
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 13 Oct 2021 15:18:38 +0000 (17:18 +0200)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 18 Oct 2021 09:28:40 +0000 (11:28 +0200)
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 <nick@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Koha/BackgroundJob/BatchDeleteItem.pm

index 9fb6969..f506aff 100644 (file)
@@ -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(
         {