From: Jeff Godin Date: Tue, 26 Mar 2019 21:29:18 +0000 (-0400) Subject: LP#1264746 return boolean, not promise X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=b675d136e4d1a588fbfe600c46b940893407adb5;p=evergreen%2Ftadl.git LP#1264746 return boolean, not promise Change check_email_different to return a boolean instead of a promise. Thanks, berick! Signed-off-by: Jeff Godin Signed-off-by: Terran McCanna Signed-off-by: Galen Charlton --- diff --git a/Open-ILS/web/js/ui/default/staff/circ/patron/regctl.js b/Open-ILS/web/js/ui/default/staff/circ/patron/regctl.js index 898f73294c..704e583cdd 100644 --- a/Open-ILS/web/js/ui/default/staff/circ/patron/regctl.js +++ b/Open-ILS/web/js/ui/default/staff/circ/patron/regctl.js @@ -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; } } }