From e6d5e6d37b63d7d34c843b8d5151dcbfd97fb359 Mon Sep 17 00:00:00 2001 From: Anand Chitipothu Date: Mon, 19 Jul 2021 13:30:37 +0530 Subject: [PATCH 1/2] fix: "Hello None" in the signup email We were trying to show the full_name, but invite request only knows the email. --- community/templates/emails/lms_invite_request_approved.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/community/templates/emails/lms_invite_request_approved.html b/community/templates/emails/lms_invite_request_approved.html index e4b43270..dcda70f3 100644 --- a/community/templates/emails/lms_invite_request_approved.html +++ b/community/templates/emails/lms_invite_request_approved.html @@ -1,6 +1,6 @@
{% set site_link = "" + site_name + "" %} -

{{_("Dear {0},").format(full_name)}}

+

{{_("Hi,")}}

{{_("Welcome to {0}!").format(site_name)}}

Click on the link below to complete your sign up and set a new password

From b9cac20613b2bba5bd835bf29c9a346e8ae8ace9 Mon Sep 17 00:00:00 2001 From: Anand Chitipothu Date: Mon, 19 Jul 2021 13:32:18 +0530 Subject: [PATCH 2/2] fix: the delay in sending signup email --- community/lms/doctype/invite_request/invite_request.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/community/lms/doctype/invite_request/invite_request.py b/community/lms/doctype/invite_request/invite_request.py index e8908e19..2df246d7 100644 --- a/community/lms/doctype/invite_request/invite_request.py +++ b/community/lms/doctype/invite_request/invite_request.py @@ -45,7 +45,8 @@ class InviteRequest(Document): subject=subject, header=[subject, "green"], template = "lms_invite_request_approved", - args=args) + args=args, + now=True) @frappe.whitelist(allow_guest=True) def create_invite_request(invite_email):