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:
parent
b12d5e7c20
commit
1b67f20823
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue