From 9fe9a3b763fd80976150490386e7bfdf50a18209 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Tue, 10 Aug 2021 13:39:46 -0300 Subject: [PATCH] Bug 27944: (QA follow-up) Make staff home page show new article requests As exposed on comment 29, the current code is showing the 'pending' requests when it should display 'requested' ones (i.e. the new ones). This patch changes that accordingly. Signed-off-by: Tomas Cohen Arazi --- mainpage.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mainpage.pl b/mainpage.pl index 0999f58199..b416565447 100755 --- a/mainpage.pl +++ b/mainpage.pl @@ -89,7 +89,7 @@ my $pending_borrower_modifications = Koha::Patron::Modifications->pending_count( my $pending_discharge_requests = Koha::Patron::Discharge::count({ pending => 1 }); my $pending_article_requests = Koha::ArticleRequests->search_limited( { - status => Koha::ArticleRequest::Status::Pending, + status => Koha::ArticleRequest::Status::Requested, $branch ? ( 'me.branchcode' => $branch ) : (), } )->count; -- 2.30.2