From ccc5cf627d14aba5d5609be39db58eeb330a4f33 Mon Sep 17 00:00:00 2001 From: Lisette Scheer Date: Mon, 20 Oct 2025 17:18:36 +0000 Subject: [PATCH] Bug 40827: Add context to plugin wrapper for report plugins This patch updates the plugin wrapper to include the reports menu and have the breadcrumbs list reports instead of admin or tools when method="report" To Test: 1. Install the Kitchen Sink Plugin 2. Navigate to Reports->Report plugins->Run Report. 3. Observe the admin menu shows 4. Apply the patch 5. Repeat step 2 6. Observe the report menu shows and the breadcrumbs are for the report module. 7. Check that the tools and configuration show the appropriate tool/admin context. Signed-off-by: David Cook Signed-off-by: Laura Escamilla (cherry picked from commit 09860c5816f426f4f90f6782a365c48d4bc95869) Signed-off-by: Baptiste Wojtkowski --- .../prog/en/includes/wrapper-staff-tool-plugin.inc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/wrapper-staff-tool-plugin.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/wrapper-staff-tool-plugin.inc index cf98030d7c..e94eb84f52 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/wrapper-staff-tool-plugin.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/wrapper-staff-tool-plugin.inc @@ -12,6 +12,8 @@ [% t("Plugins") | html %] › [% IF ( method == 'tool' ) %] [% t("Tools") | html %] + [% ELSIF (method == 'report' ) %] + [% t("Reports") | html %] [% ELSE %] [% t("Administration") | html %] [% END %] › @@ -30,6 +32,8 @@ [% WRAPPER breadcrumb_item %] [% IF ( method == 'tool' ) %] Tools + [% ELSIF (method == 'report' ) %] + Reports [% ELSE %] Administration [% END %] @@ -55,6 +59,8 @@