Bugzilla – Attachment 167761 Details for
Bug 30493
Pending archived suggestions appear on staff interface home page
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 30493: (QA follow-up) Fix for the only_my_library case as well
Bug-30493-QA-follow-up-Fix-for-the-onlymylibrary-c.patch (text/plain), 2.01 KB, created by
Emily Lamancusa (emlam)
on 2024-06-14 19:20:18 UTC
(
hide
)
Description:
Bug 30493: (QA follow-up) Fix for the only_my_library case as well
Filename:
MIME Type:
Creator:
Emily Lamancusa (emlam)
Created:
2024-06-14 19:20:18 UTC
Size:
2.01 KB
patch
obsolete
>From 590d1f147d84d96167798abb04fef7b42b2b9645 Mon Sep 17 00:00:00 2001 >From: Emily Lamancusa <emily.lamancusa@montgomerycountymd.gov> >Date: Fri, 14 Jun 2024 15:10:24 -0400 >Subject: [PATCH] Bug 30493: (QA follow-up) Fix for the only_my_library case as > well > >Signed-off-by: Emily Lamancusa <emily.lamancusa@montgomerycountymd.gov> >--- > acqui/acqui-home.pl | 2 +- > mainpage.pl | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > >diff --git a/acqui/acqui-home.pl b/acqui/acqui-home.pl >index f6ed46c454..07b1cce899 100755 >--- a/acqui/acqui-home.pl >+++ b/acqui/acqui-home.pl >@@ -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 }); >diff --git a/mainpage.pl b/mainpage.pl >index 58576e6fc2..ec413efb2b 100755 >--- a/mainpage.pl >+++ b/mainpage.pl >@@ -86,7 +86,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 }); >-- >2.34.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 30493
:
167686
|
167687
|
167689
|
167760
| 167761