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: Pedro Amorim <pedro.amorim@openfifth.co.uk>
This commit is contained in:
parent
29b71a0749
commit
9898bca5d0
|
|
@ -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");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue