From 4f9eaee01414cb654e8916401f52f7bf914f8ef3 Mon Sep 17 00:00:00 2001 From: Owen Leonard 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. - 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. --- koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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..b5e2eff8c9 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt @@ -188,7 +188,7 @@ [% END %] - [% IF ( Koha.Preference('OPACReportProblem') && CAN_user_problem_reports && pending_problem_reports ) %] + [% IF ( Koha.Preference('OPACReportProblem') && CAN_user_problem_reports && pending_problem_reports.count ) %]
OPAC problem reports pending: [% pending_problem_reports.count | html %] -- 2.11.0