From 3a32a374f726bbe420bdaa7a5818d8013c114a46 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 --- 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.17.0