fix: error in linking lessons on course page

The course was adding `{{ no such element: community.lms.doctype.lms_course.lms_course.LMSCourse object['query_parameter'] }}`
to the lesson links. Fixed it by setting query_parameter to "".
This commit is contained in:
Anand Chitipothu
2021-06-23 10:27:01 +05:30
parent f303be4db5
commit 20b3ae7d76

View File

@@ -16,6 +16,7 @@ def get_context(context):
raise frappe.Redirect
context.course = course
context.course.query_parameter = ""
if not course.is_mentor(frappe.session.user):
batch = course.get_membership(frappe.session.user)
if batch: