From: Jeff Godin Date: Tue, 23 Jun 2015 14:35:11 +0000 (-0400) Subject: Prevent validation issue with undefined settings X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=b552d3c96ef4f6077a95741bc2e5158077cab4f9;p=evergreen%2Ftadl.git Prevent validation issue with undefined settings Prevent a validation issue that was affecting new user registrations. Signed-off-by: Jeff Godin --- 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 a88ef42344..eba8f68549 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; }