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>
This commit is contained in:
parent
648feb2594
commit
87d6a13172
1 changed files with 1 additions and 1 deletions
|
@ -520,7 +520,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();
|
||||
|
|
Loading…
Reference in a new issue