]> git.koha-community.org Git - koha.git/commit
Bug 24669: Show "Unlimited" values correctly in smart-rules.pl
authorJoonas Kylmälä <joonas.kylmala@helsinki.fi>
Mon, 17 Feb 2020 10:32:26 +0000 (10:32 +0000)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Wed, 19 Feb 2020 11:28:24 +0000 (11:28 +0000)
commit38b95b5122a8448bbf84c96450fd1906d4fffaec
treef476815bee7c89d4d11b5dd751b2df28d540ef32
parent4a9330df408bd7bfd6bfafbedeeb1cb9ce858d9a
Bug 24669: Show "Unlimited" values correctly in smart-rules.pl

The rules "Holds allowed (total)", "Holds allowed (daily)", "Holds per
record (count)" were not set empty when in rule editing. Also, the
text "Unlimited" was not shown for rule "Holds per record (count)"
even though it should have been since empty value means unlimited
holds per record.

To test:
1. Apply patch
2. Edit the rules "Holds allowed (total)", "Holds allowed (daily)", "Holds per
record (count)" to be empty and save
3. Make sure all of the above rules now say Unlimited
4. Edit the rules again and make sure the above rules are now in the
rule editing empty.

Sponsored-by: The National Library of Finland
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt