From 43dcecd6e5c7f7667466a4a0db1379850d885380 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 Content-Type: text/plain; charset=utf-8 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 --- 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.20.1