Bugzilla – Attachment 134836 Details for
Bug 30713
Patron entry should limit date of birth selection to dates in the past
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 30713: Patron entry should limit date of birth selection to dates in the past
Bug-30713-Patron-entry-should-limit-date-of-birth-.patch (text/plain), 2.12 KB, created by
David Nind
on 2022-05-10 21:30:18 UTC
(
hide
)
Description:
Bug 30713: Patron entry should limit date of birth selection to dates in the past
Filename:
MIME Type:
Creator:
David Nind
Created:
2022-05-10 21:30:18 UTC
Size:
2.12 KB
patch
obsolete
>From 3876f63ef830b8bfab618229d31c06813bb70390 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Fri, 6 May 2022 15:21:43 +0000 >Subject: [PATCH] Bug 30713: Patron entry should limit date of birth selection > to dates in the past > >This patch adds to the configuration of the date of birth field in the >patron entry form so that the calendar widget prohibits the selection of >a date in the future. > >To test, apply the patch and open a patron record for editing. Try to >select a birth date in the future using the calendar widget. You should >be limited to a selection of today or before. > >Confirm that clicking the "Yesterday" and "Today" shortcuts in the >calendar widget works correctly. > >Signed-off-by: David Nind <david@davidnind.com> >--- > .../intranet-tmpl/prog/en/modules/members/memberentrygen.tt | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt >index e61ae4f688..5ec81cb0cb 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt >@@ -350,7 +350,7 @@ legend:hover { > [% END %] > Date of birth: > </label> >- <input type="text" id="dateofbirth" name="dateofbirth" size="20" value="[% borrower_data.dateofbirth | html UNLESS opduplicate %]" class="flatpickr" /> >+ <input type="text" id="dateofbirth" name="dateofbirth" size="20" value="[% borrower_data.dateofbirth | html UNLESS opduplicate %]" class="flatpickr" data-flatpickr-pastinclusive="true" /> > [% IF ( mandatorydateofbirth ) %] > <span class="required">Required</span> > [% END %] >-- >2.30.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 30713
:
134753
|
134816
|
134836
|
134950