Bug 35977: Nuke value if setting required

Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 47400c3273)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit 87d6a13172)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Martin Renvoize 2024-04-25 13:39:40 +01:00 committed by Lucas Gass
parent 046e440182
commit 9b29e9a2ab
1 changed files with 1 additions and 1 deletions

View File

@ -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();