From ea64bbdda0e3bf4053dd9be55a8d696566bb3702 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 Signed-off-by: Marcel de Rooy Signed-off-by: Nick Clemens Signed-off-by: Jonathan Druart --- mainpage.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mainpage.pl b/mainpage.pl index bc8dc88905..ab7089c8f3 100755 --- a/mainpage.pl +++ b/mainpage.pl @@ -93,7 +93,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.39.5