Bug 20284: (follow-up) Added missing 'exit's
authorAndrew Isherwood <andrew.isherwood@ptfs-europe.com>
Fri, 20 Apr 2018 14:15:15 +0000 (15:15 +0100)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 7 May 2018 14:55:01 +0000 (11:55 -0300)
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>
opac/opac-illrequests.pl

index 976e1b7..1566118 100755 (executable)
@@ -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;
             }
         }