Bug 42194: Fix redirect after sharing a report to Mana

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 <e.betemps@gmail.com>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Julian Maurice 2026-03-26 14:38:39 +00:00 committed by Lucas Gass
parent 4112dde941
commit 39a090affe
No known key found for this signature in database
GPG Key ID: 60B447398B0D36CA
1 changed files with 1 additions and 1 deletions

View File

@ -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");
}