From 76af3921ddd76aa10de499dde7f640ee356fdcdc Mon Sep 17 00:00:00 2001 From: Jannat Patel Date: Wed, 12 Feb 2025 13:34:00 +0530 Subject: [PATCH] fix: set email sent in batch enrollment --- lms/lms/doctype/lms_batch_enrollment/lms_batch_enrollment.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lms/lms/doctype/lms_batch_enrollment/lms_batch_enrollment.py b/lms/lms/doctype/lms_batch_enrollment/lms_batch_enrollment.py index 35a7c947..755d7588 100644 --- a/lms/lms/doctype/lms_batch_enrollment/lms_batch_enrollment.py +++ b/lms/lms/doctype/lms_batch_enrollment/lms_batch_enrollment.py @@ -72,8 +72,7 @@ def send_confirmation_email(doc): outgoing_email_account or frappe.conf.get("mail_login") ): send_mail(doc) - doc.db_set("confirmation_email_sent", 1) - + frappe.db.set_value(doc.doctype, doc.name, "confirmation_email_sent", 1) def send_mail(doc): subject = _("Enrollment Confirmation for the Next Training Batch")