From 20b3ae7d768eeaa9ba2553fb3176ba66d68448d2 Mon Sep 17 00:00:00 2001 From: Anand Chitipothu Date: Wed, 23 Jun 2021 10:27:01 +0530 Subject: [PATCH] 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 "". --- community/www/courses/course.py | 1 + 1 file changed, 1 insertion(+) diff --git a/community/www/courses/course.py b/community/www/courses/course.py index 3bc2f50f..eda11084 100644 --- a/community/www/courses/course.py +++ b/community/www/courses/course.py @@ -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: