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 d51703283d..1bacb77e16 100755 --- a/mainpage.pl +++ b/mainpage.pl @@ -88,7 +88,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 });