From 1ed5744ea0c457faedfbccb2c411978e1284e6e2 Mon Sep 17 00:00:00 2001 From: Jeff Godin Date: Wed, 30 Oct 2013 14:37:10 -0400 Subject: [PATCH] LP#1246843: Don't show contact invalidators for new users Don't show contact invalidator buttons for new users. This affects staged users and cloned users, where the contact fields have a value when the editor initially loads. Signed-off-by: Jeff Godin Signed-off-by: Ben Shum --- Open-ILS/web/js/ui/default/actor/user/register.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 aa8ec75eea..fe5f0c9f59 100644 --- a/Open-ILS/web/js/ui/default/actor/user/register.js +++ b/Open-ILS/web/js/ui/default/actor/user/register.js @@ -302,7 +302,9 @@ function load() { saveCloneButton.attr('disabled', true); } - uUpdateContactInvalidators(); + if (!patron.isnew()) { // Only existing users get Invalidators + uUpdateContactInvalidators(); + } // Cancel mouse scroll events from propagating to table rows which are // using the dijit.form.NumberSpinner widget, because the mouse scroll -- 2.11.0