Bug 28263: Fix too_many auto renewal message
authorLucas Gass <lucas@bywatersolutions.com>
Thu, 29 Apr 2021 14:36:03 +0000 (14:36 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 2 Nov 2021 15:50:01 +0000 (16:50 +0100)
commit3a722d814705f33acf87a653b1f9d2421af96832
tree63c903e15a2dfb92114150676c6af95e21247853
parent51f42b87343f64638d6484218b3a23e579816bfa
Bug 28263: Fix too_many auto renewal message

To test:
1. Make an item eligible for auto_renewal.
2. Set circ rule so only 1 auto_renewal is allowd.
3. Run auto_renew once, get a successful message.
4. Run it again and get the too_many error "You have reached the maximum number of checkouts possible."
5. This has nothing to do with the number of checkouts
6. Apply patch and updatedatabase.
7. Do 1-4 again.
8. Message is now "You have reached the maximum number of renewals possible."

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
installer/data/mysql/atomicupdate/bug_28263_fix_auto_renewal_message.perl [new file with mode: 0644]
installer/data/mysql/en/mandatory/sample_notices.yml
installer/data/mysql/updatedatabase.pl