]> git.koha-community.org Git - koha.git/commit
Bug 22537: Suspend all hold button appears even if the hold can no longer be suspended.
authorOwen Leonard <oleonard@myacpl.org>
Fri, 26 Apr 2019 13:55:31 +0000 (13:55 +0000)
committerroot <root@f1ebe1bec408>
Mon, 29 Apr 2019 11:33:38 +0000 (11:33 +0000)
commit3d022dc20ea34ba5fb2d37f7399b6d07be3cdea8
treec5e69fa93ae151526f27f9b48d79b1e0b9c66164
parent5a63c5baa23c5f8b1fdd343995f360147f519d4b
Bug 22537: Suspend all hold button appears even if the hold can no longer be suspended.

This patch adds to the user summary page in the OPAC a check for waiting
or in-transit holds. If all holds are waiting or in transit the "Suspend
all" controls will be hidden.

This patch also adds a missing $KohaDates filter to the "suspended
until" date.

To test, apply the patch and log in to the OPAC as a patron with holds.
Test these conditions:

 - All holds are waiting and/or in transit
   - The "Suspend holds" controls at the bottom of the page should not
     appear.
 - Some holds are waiting and/or in transit
   - The "Suspend holds" controls should appear.

Signed-off-by: Marjorie <marjorie.barry-vila@collecto.ca>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
koha-tmpl/opac-tmpl/bootstrap/en/includes/holds-table.inc