From 717f9000f2f430eec6cd74a27376f60094f9aed7 Mon Sep 17 00:00:00 2001 From: Jannat Patel Date: Mon, 6 Apr 2026 18:20:24 +0530 Subject: [PATCH] fix: variable names for certificate template --- lms/lms/doctype/lms_certificate/lms_certificate.py | 4 ++-- lms/templates/emails/certification.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lms/lms/doctype/lms_certificate/lms_certificate.py b/lms/lms/doctype/lms_certificate/lms_certificate.py index 76f70fd3..a859dafc 100644 --- a/lms/lms/doctype/lms_certificate/lms_certificate.py +++ b/lms/lms/doctype/lms_certificate/lms_certificate.py @@ -35,10 +35,10 @@ class LMSCertificate(Document): custom_template = frappe.db.get_single_value("LMS Settings", "certification_template") args = { - "student_name": self.member_name, + "member_name": self.member_name, "course_name": self.course, "course_title": frappe.db.get_value("LMS Course", self.course, "title"), - "certificate_name": self.name, + "name": self.name, "template": self.template, } diff --git a/lms/templates/emails/certification.html b/lms/templates/emails/certification.html index 3e8b261b..43babd1b 100644 --- a/lms/templates/emails/certification.html +++ b/lms/templates/emails/certification.html @@ -1,5 +1,5 @@

- {{ _("Dear ") }} {{ student_name }}, + {{ _("Dear ") }} {{ member_name }},


@@ -10,7 +10,7 @@ {{ _("With this certification, you can now showcase your updated skills and share your achievement with your colleagues and on LinkedIn. To access your certificate, please click on the link provided below. Make sure you are logged in to the portal.") }}


-{{ _("Certificate Link") }} +{{ _("Certificate Link") }}

{{ _("Once again, congratulations on this significant accomplishment.")}}