From 1b67f208232bbf7efa1eee35c3b1c28e5baa8199 Mon Sep 17 00:00:00 2001 From: Andrew Isherwood Date: Fri, 20 Apr 2018 15:15:15 +0100 Subject: [PATCH] Bug 20284: (follow-up) Added missing 'exit's This patch adds the exits that were missing after the redirects Signed-off-by: Tomas Cohen Arazi Signed-off-by: Jonathan Druart --- opac/opac-illrequests.pl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/opac/opac-illrequests.pl b/opac/opac-illrequests.pl index 976e1b71ad..1566118e2c 100755 --- a/opac/opac-illrequests.pl +++ b/opac/opac-illrequests.pl @@ -86,6 +86,7 @@ if ( $op eq 'list' ) { '/cgi-bin/koha/opac-illrequests.pl?method=view&illrequest_id=' . $params->{illrequest_id} . '&message=1' + exit; ); } elsif ( $op eq 'cancreq') { my $request = Koha::Illrequests->find({ @@ -97,6 +98,7 @@ if ( $op eq 'list' ) { '/cgi-bin/koha/opac-illrequests.pl?method=view&illrequest_id=' . $params->{illrequest_id} . '&message=1' + exit; ); } elsif ( $op eq 'create' ) { @@ -126,6 +128,7 @@ if ( $op eq 'list' ) { ); if ($backend_result->{stage} eq 'commit') { print $query->redirect('/cgi-bin/koha/opac-illrequests.pl?message=2'); + exit; } } -- 2.39.5