Bugzilla – Attachment 128060 Details for
Bug 29571
Mainpage : "All libraries" pending suggestions are visible only if the current library has suggestions
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 29571: Display all pending suggestions even if none from logged in library
Bug-29571-Display-all-pending-suggestions-even-if-.patch (text/plain), 3.24 KB, created by
David Nind
on 2021-11-28 18:39:48 UTC
(
hide
)
Description:
Bug 29571: Display all pending suggestions even if none from logged in library
Filename:
MIME Type:
Creator:
David Nind
Created:
2021-11-28 18:39:48 UTC
Size:
3.24 KB
patch
obsolete
>From af14354fe30adf5209c9f3c89ffcd5e123408803 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 25 Nov 2021 14:06:07 +0100 >Subject: [PATCH] Bug 29571: Display all pending suggestions even if none from > logged in library > >The number of pending suggestions was only displayed if there are pending >suggestions at the logged in library. > >Test plan: >Login at CPL >Create a suggestion (ASKED) for another library >=> Without this patch there is nothing on the mainpage >=> With this patch applied you will see info about pending suggestions: > >"Suggestions pending approval: Centerville: 0 / All libraries: 1" > >Signed-off-by: David Nind <david@davidnind.com> >--- > koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt >index cf7f0300e3..45943d3608 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt >@@ -165,7 +165,7 @@ > <div class="row"> > <div class="col-sm-12"> > [%# Following statement must be in one line for translatability %] >- [% IF ( CAN_user_tools_moderate_comments && pendingcomments ) || ( CAN_user_tools_moderate_tags && pendingtags ) || ( CAN_user_borrowers_edit_borrowers && pending_borrower_modifications ) || ( CAN_user_suggestions_suggestions_manage && pendingsuggestions ) || ( CAN_user_borrowers_edit_borrowers && pending_discharge_requests ) || pending_article_requests || ( Koha.Preference('AllowCheckoutNotes') && CAN_user_circulate_manage_checkout_notes && pending_checkout_notes.count ) || ( Koha.Preference('OPACReportProblem') && CAN_user_problem_reports && pending_problem_reports.count ) || already_ran_jobs %] >+ [% IF ( CAN_user_tools_moderate_comments && pendingcomments ) || ( CAN_user_tools_moderate_tags && pendingtags ) || ( CAN_user_borrowers_edit_borrowers && pending_borrower_modifications ) || ( CAN_user_suggestions_suggestions_manage && ( pendingsuggestions || all_pendingsuggestions )) || ( CAN_user_borrowers_edit_borrowers && pending_discharge_requests ) || pending_article_requests || ( Koha.Preference('AllowCheckoutNotes') && CAN_user_circulate_manage_checkout_notes && pending_checkout_notes.count ) || ( Koha.Preference('OPACReportProblem') && CAN_user_problem_reports && pending_problem_reports.count ) || already_ran_jobs %] > <div id="area-pending"> > [% IF pending_article_requests %] > <div class="pending-info" id="article_requests_pending"> >@@ -175,7 +175,7 @@ > </div> > [% END %] > >- [% IF ( CAN_user_suggestions_suggestions_manage && pendingsuggestions ) %] >+ [% IF CAN_user_suggestions_suggestions_manage && ( pendingsuggestions || all_pendingsuggestions ) %] > <div class="pending-info" id="suggestions_pending"> > > Suggestions pending approval: >-- >2.20.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 29571
:
128010
|
128060
|
128271
|
128399
|
128426
|
128473
|
128710
|
128711