From: Garry Collum Date: Mon, 27 Jun 2022 19:06:49 +0000 (+0000) Subject: LP1951642 Self-registration DOB autopopulating date X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=f4cfde4e46c1deb14cc5ce26084ee46d03d7536d;p=working%2FEvergreen.git LP1951642 Self-registration DOB autopopulating date This removes that autopopulation of the date and adds a placeholder field showing the date format. To test: 1. In library settings turn on "Allow Patron Self-Registration" and "Show dob field in patron registration". "Require dob field on patron registration" can also be turned on to test that option. 2. Go to the "Request Library Card" page of the opac and notice that the dob field is populated with today's date. 3. Apply the patch. 4. Go to the "Request Library Card" page. The dob is no longer populated with a date, and now displays a placeholder for the date format. 5. Create a few registrations with dob dates and no dob dates. Signed-off-by: Garry Collum --- diff --git a/Open-ILS/src/templates-bootstrap/opac/register.tt2 b/Open-ILS/src/templates-bootstrap/opac/register.tt2 index 73cc27388b..267e15000b 100755 --- a/Open-ILS/src/templates-bootstrap/opac/register.tt2 +++ b/Open-ILS/src/templates-bootstrap/opac/register.tt2 @@ -157,7 +157,7 @@ FOR field_def IN register_fields;
[% IF fname == "dob"; %]
-
@@ -262,6 +262,6 @@ $(document).ready(function(){ autoclose: true, todayHighlight: true, }); - $('.datepicker').datepicker("setDate", new Date()); + $('.datepicker').datepicker("setDate", ""); });