From: vlewis Date: Tue, 29 Sep 2015 17:25:16 +0000 (-0700) Subject: KMAIN-1849 Birthdate Correction Error X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=d4f51f1e2f270043977ac0cfc947d065ad487e49;p=working%2FEvergreen.git KMAIN-1849 Birthdate Correction Error Patron Registration Now Validates The Year From The DOB Field To Make Sure Inaccurate Information Is Rejected Signed-off-by: Nick Duncan modified: Open-ILS/web/js/ui/default/actor/user/register.js --- diff --git a/Open-ILS/web/js/ui/default/actor/user/register.js b/Open-ILS/web/js/ui/default/actor/user/register.js index a3fa36c78e..c45516899f 100644 --- a/Open-ILS/web/js/ui/default/actor/user/register.js +++ b/Open-ILS/web/js/ui/default/actor/user/register.js @@ -1596,6 +1596,8 @@ function attachWidgetEvents(fmcls, fmfield, widget) { case 'dob': widget.widget.isValid = function() { + if(!this.attr('value')) return false; + if(this.attr('value').getFullYear().toString().length < 4) return false; return this.attr("value") < new Date(); }; dojo.connect(widget.widget, 'onChange',