Bug 30493: (QA follow-up) Fix for the only_my_library case as well
Signed-off-by: Emily Lamancusa <emily.lamancusa@montgomerycountymd.gov> Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de> (cherry picked from commit94e1d8ed0c
) Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> (cherry picked from commitbcb520d69e
) Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com> Signed-off-by: wainuiwitikapark <wainuiwitikapark@catalyst.net.nz>
This commit is contained in:
parent
619db47e3f
commit
ba0ea9cd26
2 changed files with 2 additions and 2 deletions
|
@ -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 });
|
||||
|
|
|
@ -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 });
|
||||
|
|
Loading…
Reference in a new issue