From e2fbf45cd8cd26b9cf05ad4fbbc2423d03ee1064 Mon Sep 17 00:00:00 2001 From: Linty Date: Wed, 4 Dec 2024 14:54:56 +0100 Subject: [PATCH] fixes #2288 display the correct mail after changed it --- admin/themes/default/js/user_list.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/admin/themes/default/js/user_list.js b/admin/themes/default/js/user_list.js index 163b74bb6..90705871f 100644 --- a/admin/themes/default/js/user_list.js +++ b/admin/themes/default/js/user_list.js @@ -2346,7 +2346,10 @@ function send_link_password(email, username, user_id, send_by_mail) { if(response.result.send_by_mail) { $('#result_send_mail').removeClass('update-password-fail icon-red').addClass('update-password-success icon-green'); $('#icon_password_msg_result_mail').removeClass('icon-cancel').addClass('icon-ok'); - $('#password_msg_result_mail').html(sprintf(mailSentAt, username, email)); + const curr_mail = $('.user-property-email .user-property-input').val().length + ? $('.user-property-email .user-property-input').val() + : email; + $('#password_msg_result_mail').html(sprintf(mailSentAt, username, curr_mail)); } else { $('#result_send_mail').removeClass('update-password-success icon-green').addClass('update-password-fail icon-red'); $('#icon_password_msg_result_mail').removeClass('icon-ok').addClass('icon-cancel');