Bug 36738: Don't copy date when repeating date fields
authorShi Yao Wang <shi-yao.wang@inlibro.com>
Tue, 30 Apr 2024 19:02:50 +0000 (15:02 -0400)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Fri, 3 May 2024 08:59:36 +0000 (10:59 +0200)
commitce4ab12a3cac55db65839dadacd84ada27db2091
treed8bbbd669cbf381a33c905221b06b54728c7d52d
parent834fc10650779c71b6608ab01ef0e54bd9dd4746
Bug 36738: Don't copy date when repeating date fields

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>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
koha-tmpl/intranet-tmpl/prog/js/members.js