Bug 7726: explanation and options that were in the wrong order
[koha_gimpoz] / circ / waitingreserves.pl
index 84d3b92..c9c9f0e 100755 (executable)
@@ -159,7 +159,11 @@ $template->param(
     ReservesMaxPickUpDelay => C4::Context->preference('ReservesMaxPickUpDelay')
 );
 
-output_html_with_http_headers $input, $cookie, $template->output;
+if ($cancelall) {
+    print $input->redirect("/cgi-bin/koha/circ/waitingreserves.pl");
+} else {
+    output_html_with_http_headers $input, $cookie, $template->output;
+}
 
 exit;