From 288c6727e49755dc9d943d87250f82ed0e213d53 Mon Sep 17 00:00:00 2001 From: Jeff Godin Date: Tue, 23 Jun 2015 10:35:11 -0400 Subject: [PATCH] Prevent validation issue with undefined settings Prevent a validation issue that was affecting new user registrations. Signed-off-by: Jeff Godin --- Open-ILS/web/js/ui/default/actor/user/register.js | 3 +++ 1 file changed, 3 insertions(+) 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 3012e10448..fe7a201878 100644 --- a/Open-ILS/web/js/ui/default/actor/user/register.js +++ b/Open-ILS/web/js/ui/default/actor/user/register.js @@ -992,6 +992,9 @@ function uEditDrawSettingRow(tbody, dividerRow, template, stype) { var tb = new dijit.form.TextBox({scrollOnFocus:false}, getByName(row, 'widget')); tb.attr('value', userSettings[stype.name()]); tb.isValid = function() { + if (!this.value) { + return true; + } if (this.value.match(/^\s*$/) || this.value.match(/^\d{3}-\d{3}-\d{4}$/)) { return true; } -- 2.11.0