From ac72901bcdc9d45ce096611e72b7a35273e4441c Mon Sep 17 00:00:00 2001 From: Jeff Godin Date: Wed, 30 Oct 2013 14:37:10 -0400 Subject: [PATCH] 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 --- 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 aabdc3c203..d6f190d0e6 100644 --- a/Open-ILS/web/js/ui/default/actor/user/register.js +++ b/Open-ILS/web/js/ui/default/actor/user/register.js @@ -299,7 +299,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