From 9898bca5d0ea79c16b4875947680aa7314ed6f98 Mon Sep 17 00:00:00 2001 From: Julian Maurice Date: Thu, 26 Mar 2026 14:38:39 +0000 Subject: [PATCH] Bug 42194: Fix redirect after sharing a report to Mana MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bug 34478 removed a '&' by mistake in the redirect URL Test plan: 1. Setup a local instance of Mana (https://gitlab.com/koha-community/koha-mana) with disabled email validation (skip_email_validation in config.yml) 2. Connect Koha to this local instance (mana_config in $KOHA_CONF) 3. From Koha Admin interface, create a Mana security token 4. Share a report to Mana 5. You should be redirected to the list of reports with a message saying the report was saved successfully Signed-off-by: Emmanuel Bétemps Signed-off-by: Marcel de Rooy Signed-off-by: Pedro Amorim --- reports/guided_reports.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reports/guided_reports.pl b/reports/guided_reports.pl index 9d7388fac7..9805cd6202 100755 --- a/reports/guided_reports.pl +++ b/reports/guided_reports.pl @@ -648,7 +648,7 @@ if ( !$op ) { my $reportid = $input->param('reportid'); my $result = Koha::SharedContent::send_entity( $lang, $borrowernumber, $reportid, 'report' ); if ($result) { - print $input->redirect( "/cgi-bin/koha/reports/guided_reports.pl?op=listmanamsg=" . $result->{msg} ); + print $input->redirect( "/cgi-bin/koha/reports/guided_reports.pl?op=list&manamsg=" . $result->{msg} ); } else { print $input->redirect("/cgi-bin/koha/reports/guided_reports.pl?op=list&manamsg=noanswer"); }