From 4a6cec6d0f3fe41be3205934a84f059ea061ae44 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Thu, 28 Apr 2022 12:04:40 +0000 Subject: [PATCH] Bug 29346: (QA follow-up) Rebuild queue when adjusting priorities of holds Signed-off-by: Tomas Cohen Arazi Signed-off-by: Nick Clemens Signed-off-by: Fridolin Somers --- reserve/modrequest.pl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/reserve/modrequest.pl b/reserve/modrequest.pl index d1317a0050..4f044306d0 100755 --- a/reserve/modrequest.pl +++ b/reserve/modrequest.pl @@ -32,6 +32,7 @@ use C4::Output; use C4::Reserves qw( ModReserve ModReserveCancelAll ); use C4::Auth qw( get_template_and_user ); use Koha::DateUtils qw( dt_from_string ); +use Koha::BackgroundJob::BatchUpdateBiblioHoldsQueue; my $query = CGI->new; my ( $template, $loggedinuser, $cookie ) = get_template_and_user( @@ -96,6 +97,12 @@ else { } } } + my @biblio_ids = uniq @biblionumber; + Koha::BackgroundJob::BatchUpdateBiblioHoldsQueue->new->enqueue( + { + biblio_ids => \@biblio_ids + } + ); } my $from=$query->param('from'); -- 2.39.5