LP#1246843: Don't show contact invalidators for new users
authorJeff Godin <jgodin@tadl.org>
Wed, 30 Oct 2013 18:37:10 +0000 (14:37 -0400)
committerBen Shum <bshum@biblio.org>
Thu, 22 May 2014 02:02:46 +0000 (22:02 -0400)
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 <jgodin@tadl.org>
Signed-off-by: Ben Shum <bshum@biblio.org>
Open-ILS/web/js/ui/default/actor/user/register.js

index aa8ec75..fe5f0c9 100644 (file)
@@ -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