Bugzilla – Attachment 165935 Details for
Bug 36738
Date attributes follow-ups
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 36738: Date attributes follow-ups
Bug-36738-Date-attributes-follow-ups.patch (text/plain), 1.54 KB, created by
David Nind
on 2024-04-30 21:29:07 UTC
(
hide
)
Description:
Bug 36738: Date attributes follow-ups
Filename:
MIME Type:
Creator:
David Nind
Created:
2024-04-30 21:29:07 UTC
Size:
1.54 KB
patch
obsolete
>From 93e8f4596d90a122f3650361cd7254479ff92c59 Mon Sep 17 00:00:00 2001 >From: Shi Yao Wang <shi-yao.wang@inlibro.com> >Date: Tue, 30 Apr 2024 15:02:50 -0400 >Subject: [PATCH] Bug 36738: Date attributes follow-ups > >Make the repeatable date patron attribute empty when repeating the >inputs to avoid date formatting problems (and keeping past date value >after repeating is not something we want) > >Test plan: >1- create a patron attribute type with is a date and repeatable checked >(administration -> patron attribute types) >2- add a couple of patron attribute of type date, notice the repeated >inputs contain previous data >3- Apply the patch >4- redo step 2 and notice the repeated inputs are empty > >Follow up for bug 32610 (https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32610) > >Signed-off-by: David Nind <david@davidnind.com> >--- > koha-tmpl/intranet-tmpl/prog/js/members.js | 2 -- > 1 file changed, 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/js/members.js b/koha-tmpl/intranet-tmpl/prog/js/members.js >index 7e4806fa23..2f58cb888c 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/members.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/members.js >@@ -60,11 +60,9 @@ function clone_entry(node) { > > // regenerate flatpickr calendars to add event listeners > $(`.flatpickr_wrapper`, clone).remove(); >- var date = $("> .flatpickr", original).val(); > $(".flatpickr", clone).each(function(){ > apply_flatpickr(this); > }); >- $(`.flatpickr_wrapper .flatpickr, #patron_attr_${newId}.flatpickr`, clone).val(date); > > return false; > } >-- >2.39.2
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 36738
:
165927
| 165935