Koha/koha-tmpl/intranet-tmpl/prog
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
..
css Bug 21246: Extend the 'Last patron' navigation feature to 'Last 10 patrons' 2023-10-11 10:31:40 -03:00
en Bug 16223: Require fee limit only if "Lift after payment" is set as "Yes" 2023-10-11 12:13:08 -03:00
img
js Bug 16223: Add ability to define liftable restrictions 2023-10-11 12:13:06 -03:00
pdf
sound