From 9b29e9a2ab1eb07d857dee29db397fe9bc27e517 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Thu, 25 Apr 2024 13:39:40 +0100 Subject: [PATCH] Bug 35977: Nuke value if setting required Signed-off-by: Katrin Fischer (cherry picked from commit 47400c327394a449b6bcb0998eba0e7840a9e6d8) Signed-off-by: Fridolin Somers (cherry picked from commit 87d6a13172a32c5051844cf4597b47ae490e26dd) Signed-off-by: Lucas Gass --- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt index bd708c67b2..db0699e1d4 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt @@ -524,7 +524,7 @@ $(".hold-options").hide(); var OPACMandatoryHoldDates = "[% Koha.Preference('OPACMandatoryHoldDates') | html %]"; if( OPACMandatoryHoldDates == "start" || OPACMandatoryHoldDates == "both" ) { - $(".holddatefrom").prop( 'required', true ).siblings(".required_label").addClass('required').show(); + $(".holddatefrom").val("").prop( 'required', true ).siblings(".required_label").addClass('required').show(); } if( OPACMandatoryHoldDates == "end" || OPACMandatoryHoldDates == "both" ) { $(".futuredate").prop( 'required', true ).siblings(".required_label").addClass('required').show(); -- 2.39.5