Templates: modified routing logic, added data attributes in template
Co-authored-by: Chinmay Pai <chinmaydpai@gmail.com>
diff --git a/erpnext/www/lms/program.py b/erpnext/www/lms/program.py
index b6ebcf4..c61aee5 100644
--- a/erpnext/www/lms/program.py
+++ b/erpnext/www/lms/program.py
@@ -1,9 +1,11 @@
from __future__ import unicode_literals
+from erpnext.education.utils import get_student_name
import frappe
def get_context(context):
- context.program = frappe.get_doc("Program", frappe.form_dict["code"])
+ print(get_student_name(frappe.session.user))
+ context.program = frappe.get_doc("Program", frappe.form_dict["program"])
context.course_list, context.course_data = get_courses(context)
def get_courses(context):