Koha/koha-tmpl/intranet-tmpl
Emmi Takkinen 8d2bb62d3c
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>
2023-10-11 12:13:08 -03:00
..
js Bug 32307: Fix gallery when Coce is enabled 2023-02-20 09:54:16 -03:00
lib Bug 34270: Upgrade and prune jQueryUI assets in the staff interface 2023-10-09 11:41:18 -03:00
prog Bug 16223: Require fee limit only if "Lift after payment" is set as "Yes" 2023-10-11 12:13:08 -03:00