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 |
- |
|
|