From 8e8f68a96b920db125e8439226d6cc4ef7abbacf Mon Sep 17 00:00:00 2001 From: Garry Collum Date: Tue, 28 Jun 2022 11:59:21 +0000 Subject: [PATCH] LP1951642 Self-registration DOB autopopulating date This removes the autopopulation of the dob date in the OPAC's self-registration page. Note that the issue applies only to the Bootstrap OPAC, not TPAC. 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. Check the dob field again and notice that it is no longer autopopulated. 5. Create a few registrations with dob dates and with no dob dates to confirm that the field works. Signed-off-by: Garry Collum Signed-off-by: Galen Charlton --- Open-ILS/src/templates-bootstrap/opac/register.tt2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/src/templates-bootstrap/opac/register.tt2 b/Open-ILS/src/templates-bootstrap/opac/register.tt2 index 73cc27388b..c6dbec3796 100755 --- a/Open-ILS/src/templates-bootstrap/opac/register.tt2 +++ b/Open-ILS/src/templates-bootstrap/opac/register.tt2 @@ -262,6 +262,6 @@ $(document).ready(function(){ autoclose: true, todayHighlight: true, }); - $('.datepicker').datepicker("setDate", new Date()); + $('.datepicker').datepicker("setDate", ""); }); -- 2.11.0