LP#1264746 return boolean, not promise user/jeff/lp1264746_email_password_reset_button
authorJeff Godin <jgodin@tadl.org>
Tue, 26 Mar 2019 21:29:18 +0000 (17:29 -0400)
committerJeff Godin <jgodin@tadl.org>
Tue, 26 Mar 2019 21:29:18 +0000 (17:29 -0400)
Change check_email_different to return a boolean instead of a
promise. Thanks, berick!

Signed-off-by: Jeff Godin <jgodin@tadl.org>
Open-ILS/web/js/ui/default/staff/circ/patron/regctl.js

index c0104b4..a6b611e 100644 (file)
@@ -168,7 +168,7 @@ angular.module('egCoreMod')
     service.check_email_different = function(email) {
         if (service.existing_patron) {
             if (email != service.existing_patron.email()) {
-                return $q.when(true);
+                return true;
             }
         }
     }