Bug 36064: (QA follow-up) Simplify and tidy

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Tomás Cohen Arazi 2024-10-22 11:17:34 -03:00 committed by Katrin Fischer
parent 2cb63bb763
commit 6190154a43
Signed by: kfischer
GPG key ID: 0EF6E2C03357A834

View file

@ -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;