]> git.koha-community.org Git - koha.git/commit
Bug 26388: Do not show 'Renew all' or 'Renew selected' if no renewable items
authorNick Clemens <nick@bywatersolutions.com>
Fri, 4 Sep 2020 13:18:53 +0000 (13:18 +0000)
committerLucas Gass <lucas@bywatersolutions.com>
Mon, 14 Sep 2020 22:19:34 +0000 (22:19 +0000)
commit6347ad75c8f48f450ce82042f664bbb2d2bcd03c
treec9ddeddcfd873eb26cd6d4819bb91c6961939a06
parent765b5ed5f50c248ce822942f2df2a6eef631f2f5
Bug 26388: Do not show 'Renew all' or 'Renew selected' if no renewable items

Additionally, only include renewable items in 'Renew all'

To test:
1 - Check out some items to a patron, ideally:
    Some not renewable because set for auto renewal
    Some not renewable because of holds
    Some renewable
 2 - Confirm 'Renew selected' and 'Renew all' show on the opac
 3 - Click 'Renew all'
 4 - You get errors about the non-renewable items?
 5 - Check in all renewable items
 6 - Confirm you still see renew buttons
 7 - Apply patch
 8 - Refresh and you shoudl not see renew buttons
 9 - Check out a renewable item
10 - Click 'Renew all'
11 - Renewable item is renewed with no error
12 - Try again with 'Renew selected'
13 - Confirm it works as expected

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 763cc4eb2e53f7a44a138d6162bfa4470a484bac)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt
opac/opac-user.pl