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 <tomascohen@theke.io>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Andrew Isherwood 2018-04-20 15:15:15 +01:00 committed by Jonathan Druart
parent b12d5e7c20
commit 1b67f20823
1 changed files with 3 additions and 0 deletions

View File

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