fix: set confirmation_email_sent after sending email
This commit is contained in:
@@ -46,7 +46,7 @@ class LMSBatchEnrollment(Document):
|
|||||||
outgoing_email_account or frappe.conf.get("mail_login")
|
outgoing_email_account or frappe.conf.get("mail_login")
|
||||||
):
|
):
|
||||||
self.send_mail()
|
self.send_mail()
|
||||||
self.confirmation_email_sent = 1
|
self.db_set("confirmation_email_sent", 1)
|
||||||
|
|
||||||
def send_mail(self):
|
def send_mail(self):
|
||||||
subject = _("Enrollment Confirmation for the Next Training Batch")
|
subject = _("Enrollment Confirmation for the Next Training Batch")
|
||||||
|
|||||||
Reference in New Issue
Block a user