Bug 17010 - Canceling a hold awaiting pickup no longer alerts librarian about next...
authorKyle M Hall <kyle@bywatersolutions.com>
Mon, 1 Aug 2016 14:17:04 +0000 (07:17 -0700)
committerKyle M Hall <kyle@bywatersolutions.com>
Thu, 15 Sep 2016 13:34:44 +0000 (13:34 +0000)
In previous versions of Koha, if a hold canceled from the "Holds over" tab had other holds on it,
the librarian would be alerted with the message "This item is on hold for pick-up at your library"
and directed to check it in to fill the next hold. This no longer happens.

Test Plan:
1) Apply this patch
2) Find a hold that has been waiting too long
3) Cancel that hold via waitingreserves.pl
4) Note you get the message "This item is on hold for pick-up at your library"
5) Confirm the ok button redirects you to the correct tab

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
circ/waitingreserves.pl
koha-tmpl/intranet-tmpl/prog/en/modules/circ/waitingreserves.tt

index d6a24f7..1a7b29c 100755 (executable)
@@ -160,9 +160,10 @@ $template->param(
     overcount   => $overcount,
     show_date   => output_pref({ dt => dt_from_string, dateformat => 'iso', dateonly => 1 }),
     ReservesMaxPickUpDelay => $max_pickup_delay,
+    tab => $tab,
 );
 
-if ($item && $tab eq 'holdsover') {
+if ($item && $tab eq 'holdsover' && !@cancel_result) {
     print $input->redirect("/cgi-bin/koha/circ/waitingreserves.pl#holdsover");
 } elsif ($cancelall) {
     print $input->redirect("/cgi-bin/koha/circ/waitingreserves.pl");
index f932d31..df82eb8 100644 (file)
@@ -51,8 +51,8 @@
                     <p><strong>[% nextreservtitle %]</strong> is on hold for <strong> [% nextreservsurname %], [% nextreservfirstname %]</strong>.
                     Please retain this item and check it in to process the hold.
                     </p>
-                    <form name="cancelReservewithtransfert" action="waitingreserves.pl" method="post">
-                        <input type="submit" class="submit" value="OK" />
+                    <form name="cancelReservewithtransfert" action="waitingreserves.p#[% tab %]" method="post">
+                        <input class="btn" type="submit" class="submit" value="OK" />
                     </form>
                 </div>
             [% END %]
@@ -62,8 +62,8 @@
                     <p><strong>[% nextreservtitle %]</strong> is on hold for <strong>[% nextreservsurname %], [% nextreservfirstname %]</strong>.
                     Please retain this item and check it in to process the hold.
                     </p>
-                    <form name="cancelReservewithwaiting" action="waitingreserves.pl" method="post">
-                        <input type="submit" class="submit" value="OK"/>
+                    <form name="cancelReservewithwaiting" action="waitingreserves.pl#[% tab %]" method="post">
+                        <input class="btn" type="submit" class="submit" value="OK"/>
                     </form>
                 </div>
             [% END %]