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

(-)a/acqui/acqui-home.pl (-1 / +1 lines)
Lines 53-59 if( C4::Context->only_my_library ){ Link Here
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'} })->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" });
56
    my $pendingsuggestions = Koha::Suggestions->search({ status => "ASKED", archived => 0 });
57
    my $local_pendingsuggestions_count = $pendingsuggestions->search({ 'me.branchcode' => C4::Context->userenv()->{'branch'} })->count();
57
    my $local_pendingsuggestions_count = $pendingsuggestions->search({ 'me.branchcode' => C4::Context->userenv()->{'branch'} })->count();
58
    my $pendingsuggestions_count = $pendingsuggestions->count();
58
    my $pendingsuggestions_count = $pendingsuggestions->count();
59
    $template->param(
59
    $template->param(
(-)a/mainpage.pl (-2 / +1 lines)
Lines 89-95 if( C4::Context->only_my_library ){ Link Here
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'} })->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" });
92
    my $pendingsuggestions = Koha::Suggestions->search({ status => "ASKED", archived => 0 });
93
    my $local_pendingsuggestions_count = $pendingsuggestions->search({ 'me.branchcode' => C4::Context->userenv()->{'branch'} })->count();
93
    my $local_pendingsuggestions_count = $pendingsuggestions->search({ 'me.branchcode' => C4::Context->userenv()->{'branch'} })->count();
94
    my $pendingsuggestions_count = $pendingsuggestions->count();
94
    my $pendingsuggestions_count = $pendingsuggestions->count();
95
    $template->param(
95
    $template->param(
96
- 

Return to bug 30493