Bugzilla – Attachment 105739 Details for
Bug 25582
Don't show OPAC problems entry on dashboard when there are no reports
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 25582: Don't show OPAC problems entry on dashboard when there are no reports
Bug-25582-Dont-show-OPAC-problems-entry-on-dashboa.patch (text/plain), 4.10 KB, created by
Katrin Fischer
on 2020-06-11 11:53:44 UTC
(
hide
)
Description:
Bug 25582: Don't show OPAC problems entry on dashboard when there are no reports
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2020-06-11 11:53:44 UTC
Size:
4.10 KB
patch
obsolete
>From 68a4974234c4e90a6cf62d746a890a7f06d23c44 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Tue, 2 Jun 2020 11:08:23 +0000 >Subject: [PATCH] Bug 25582: Don't show OPAC problems entry on dashboard when > there are no reports > >This patch makes a minor correction to the template to correct the check >on outstanding OPAC problem reports. An error was preventing the check >from working correctly. > >To test, apply the patch and enable the OPACReportProblem system >preference. > > - On the staff interface home page, check the area showing pending > operations (suggestions, tags, etc.). > - If you have no pending OPAC problem reports there should be no line > for OPAC problem reports. > - If necessary, mark all pending OPAC problem reports closed and > confirm that when there are no outstanding reports the link is > hidden. > - Also test when there are no other outstanding reports in that > section (suggestions, tags, patron modifications), nothing appears > at all, not even the surrounding border. > - If necessary, test that the link appears when you have one or more > OPAC problem reports. > - Go to the OPAC and use the "Report a problem" to submit a test > report. > - Check that the staff interface home page reflects that there is > now a pending report. > >Signed-off-by: David Nind <david@davidnind.com> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > 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 1ec2e3d852..fbf727b6ef 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt >@@ -134,7 +134,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 ) %] >+ [% 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 ) %] > <div id="area-pending"> > [% IF pending_article_requests %] > <div class="pending-info" id="article_requests_pending"> >@@ -188,7 +188,7 @@ > </div> > [% END %] > >- [% IF ( Koha.Preference('OPACReportProblem') && CAN_user_problem_reports && pending_problem_reports ) %] >+ [% IF ( Koha.Preference('OPACReportProblem') && CAN_user_problem_reports && pending_problem_reports.count ) %] > <div class="pending-info" id="problem_reports_pending"> > <a href="/cgi-bin/koha/admin/problem-reports.pl">OPAC problem reports pending</a>: > <span class="pending-number-link">[% pending_problem_reports.count | html %]</span> >-- >2.11.0
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 25582
:
105482
|
105661
|
105668
|
105669
|
105673
| 105739