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>
This commit is contained in:
parent
b9b7d58bdd
commit
5fbb2d5420
|
|
@ -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 New Issue