Bug 36708: Fix column index for processing No automatic renewal after
authorLucas Gass <lucas@bywatersolutions.com>
Mon, 29 Apr 2024 15:18:26 +0000 (15:18 +0000)
committerLucas Gass <lucas@bywatersolutions.com>
Thu, 23 May 2024 14:34:28 +0000 (14:34 +0000)
commite98dc1e69ccc12820aba5cf45ab997da45198cf8
treeb6e4bfa6464497850cda3c487c5bfb45c4e7e592
parent44db419ca00f76e5c87c1ed465bda78d53fbf215
Bug 36708: Fix column index for processing No automatic renewal after

To test:
1- Find or create a circulation rule with a 'Holds allowed (total)' limit of 3 (or another number) and no value in 'No automatic renewal after (hard limit)'
2- Select to edit the rule, and note that 'No automatic renewal after (hard limit)' box in the editing line is now populated with a date
3- Note also that 'Holds allowed (total)' is empty in your editing line
4- If you save your edits without clearing the new 'No automatic renewal after (hard limit)' date, it will save as part of the rule. Also, 'Holds allowed (total)' will save as Unlimited unless you re-add your numerical value.
5- APPLY PATCH
6- Try again, the values should save corrected and not erroneously fill the No automatic renewal after (hard limit) column.

Signed-off-by: Andrew Fuerste Henry <andrewfh@dubcolib.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit e3a04f73a22b46af1a68f221dcaa6db77017d76d)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt