Bugzilla – Attachment 165536 Details for
Bug 35977
Display current date in hold starts on when placing a hold in the OPAC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 35977: Nuke value if setting required
Bug-35977-Nuke-value-if-setting-required.patch (text/plain), 1.30 KB, created by
Martin Renvoize (ashimema)
on 2024-04-25 12:40:16 UTC
(
hide
)
Description:
Bug 35977: Nuke value if setting required
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2024-04-25 12:40:16 UTC
Size:
1.30 KB
patch
obsolete
>From e22402e52264ef05537f1bc7ef7bc66c31af8ddb Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Thu, 25 Apr 2024 13:39:40 +0100 >Subject: [PATCH] Bug 35977: Nuke value if setting required > >--- > 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 8813367702a..0b4b5e91f23 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt >@@ -521,7 +521,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.44.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 35977
:
161814
|
161928
|
162125
|
162126
|
164217
|
164220
|
164221
|
165535
| 165536 |
165725
|
165910