From 6190154a435a280cc7897499cf24e0458e27b715 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Tue, 22 Oct 2024 11:17:34 -0300 Subject: [PATCH] Bug 36064: (QA follow-up) Simplify and tidy Signed-off-by: Tomas Cohen Arazi Signed-off-by: Katrin Fischer --- mainpage.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mainpage.pl b/mainpage.pl index 44689e87cf..d84408538e 100755 --- a/mainpage.pl +++ b/mainpage.pl @@ -125,7 +125,8 @@ unless ( $logged_in_user->has_permission( { parameters => 'manage_background_job $template->param( already_ran_jobs => $already_ran_jobs ); } -my $holds_with_cancellation_requests = Koha::Holds->waiting->search()->filter_by_has_cancellation_requests->count; +$template->param( + holds_with_cancellation_requests => Koha::Holds->waiting->filter_by_has_cancellation_requests->count ); if ( C4::Context->preference('CurbsidePickup') ) { $template->param( @@ -144,7 +145,6 @@ $template->param( pending_discharge_requests => $pending_discharge_requests, pending_article_requests => $pending_article_requests, pending_problem_reports => $pending_problem_reports, - holds_with_cancellation_requests => $holds_with_cancellation_requests, ); output_html_with_http_headers $query, $cookie, $template->output; -- 2.39.5