]> git.koha-community.org Git - koha.git/commit
Bug 16223: Require fee limit only if "Lift after payment" is set as "Yes"
authorEmmi Takkinen <emmi.takkinen@koha-suomi.fi>
Fri, 17 Mar 2023 07:55:39 +0000 (09:55 +0200)
committerTomas Cohen Arazi <tomascohen@theke.io>
Wed, 11 Oct 2023 15:13:08 +0000 (12:13 -0300)
commit8d2bb62d3cfde429ab05620fbb8e1f6e20b895d5
treeebb00861735ade8bea5fd955f83e75e00ca2667c
parentc04e297f39e6b8df73490b1bf29092eccaf00b7f
Bug 16223: Require fee limit only if "Lift after payment" is set as "Yes"

Fee limit should only be required if restriction is
meant to be lifted after payment. This patch makes
"Fee limit" input field required based on value of
"Lift after payment" select field.

To test:
1. Create a new restriction.
2. "Lift after payment" should be set as "No".
3. Change value as "Yes".
=> "Fee limit" should now have "Required" text
after input field.
4. Try to save restriction.
=> Text "This field is required" should be
displayed after "Fee limit".
5. Change "Lift after payment" back to "No".
=> Both texts should now be lifted.

Also test with existing restriction and make sure
restrictions are still saved without problems.

Sponsored-by: Koha-Suomi Oy
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/intranet-tmpl/prog/en/modules/admin/restrictions.tt