From b675d136e4d1a588fbfe600c46b940893407adb5 Mon Sep 17 00:00:00 2001 From: Jeff Godin Date: Tue, 26 Mar 2019 17:29:18 -0400 Subject: [PATCH] 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 --- Open-ILS/web/js/ui/default/staff/circ/patron/regctl.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } } } -- 2.11.0