From bcb520d69e4e65e5278fc8c57d04817d8b816db7 Mon Sep 17 00:00:00 2001 From: Emily Lamancusa Date: Fri, 14 Jun 2024 15:10:24 -0400 Subject: [PATCH] Bug 30493: (QA follow-up) Fix for the only_my_library case as well Signed-off-by: Emily Lamancusa Signed-off-by: Katrin Fischer (cherry picked from commit 94e1d8ed0c4742f48d23dc0241c0d04f058ee316) Signed-off-by: Lucas Gass --- acqui/acqui-home.pl | 2 +- mainpage.pl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/acqui/acqui-home.pl b/acqui/acqui-home.pl index f6ed46c454..07b1cce899 100755 --- a/acqui/acqui-home.pl +++ b/acqui/acqui-home.pl @@ -50,7 +50,7 @@ my $status = $query->param('status') || "ASKED"; # Get current branch count and total viewable count, if they don't match then pass # both to template if( C4::Context->only_my_library ){ - my $local_pendingsuggestions_count = Koha::Suggestions->search({ status => "ASKED", branchcode => C4::Context->userenv()->{'branch'} })->count(); + my $local_pendingsuggestions_count = Koha::Suggestions->search({ status => "ASKED", branchcode => C4::Context->userenv()->{'branch'}, archived => 0 })->count(); $template->param( suggestions_count => $local_pendingsuggestions_count ); } else { my $pendingsuggestions = Koha::Suggestions->search({ status => "ASKED", archived => 0 }); diff --git a/mainpage.pl b/mainpage.pl index 58576e6fc2..ec413efb2b 100755 --- a/mainpage.pl +++ b/mainpage.pl @@ -86,7 +86,7 @@ my $pendingtags = get_count_by_tag_status(0); # both to template if( C4::Context->only_my_library ){ - my $local_pendingsuggestions_count = Koha::Suggestions->search({ status => "ASKED", branchcode => C4::Context->userenv()->{'branch'} })->count(); + my $local_pendingsuggestions_count = Koha::Suggestions->search({ status => "ASKED", branchcode => C4::Context->userenv()->{'branch'}, archived => 0 })->count(); $template->param( pendingsuggestions => $local_pendingsuggestions_count ); } else { my $pendingsuggestions = Koha::Suggestions->search({ status => "ASKED", archived => 0 });