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 }); |