View | Details | Raw Unified | Return to bug 30493
Collapse All | Expand All

(-)a/acqui/acqui-home.pl (-1 / +1 lines)
Lines 50-56 my $status = $query->param('status') || "ASKED"; Link Here
50
# Get current branch count and total viewable count, if they don't match then pass
50
# Get current branch count and total viewable count, if they don't match then pass
51
# both to template
51
# both to template
52
if( C4::Context->only_my_library ){
52
if( C4::Context->only_my_library ){
53
    my $local_pendingsuggestions_count = Koha::Suggestions->search({ status => "ASKED", branchcode => C4::Context->userenv()->{'branch'} })->count();
53
    my $local_pendingsuggestions_count = Koha::Suggestions->search({ status => "ASKED", branchcode => C4::Context->userenv()->{'branch'}, archived => 0 })->count();
54
    $template->param( suggestions_count => $local_pendingsuggestions_count );
54
    $template->param( suggestions_count => $local_pendingsuggestions_count );
55
} else {
55
} else {
56
    my $pendingsuggestions = Koha::Suggestions->search({ status => "ASKED", archived => 0 });
56
    my $pendingsuggestions = Koha::Suggestions->search({ status => "ASKED", archived => 0 });
(-)a/mainpage.pl (-2 / +1 lines)
Lines 86-92 my $pendingtags = get_count_by_tag_status(0); Link Here
86
# both to template
86
# both to template
87
87
88
if( C4::Context->only_my_library ){
88
if( C4::Context->only_my_library ){
89
    my $local_pendingsuggestions_count = Koha::Suggestions->search({ status => "ASKED", branchcode => C4::Context->userenv()->{'branch'} })->count();
89
    my $local_pendingsuggestions_count = Koha::Suggestions->search({ status => "ASKED", branchcode => C4::Context->userenv()->{'branch'}, archived => 0 })->count();
90
    $template->param( pendingsuggestions => $local_pendingsuggestions_count );
90
    $template->param( pendingsuggestions => $local_pendingsuggestions_count );
91
} else {
91
} else {
92
    my $pendingsuggestions = Koha::Suggestions->search({ status => "ASKED", archived => 0 });
92
    my $pendingsuggestions = Koha::Suggestions->search({ status => "ASKED", archived => 0 });
93
- 

Return to bug 30493