fix: replaced instances of batch to batch_old

This commit is contained in:
Jannat Patel
2023-08-26 15:28:03 +05:30
parent 12b3d16662
commit 09dbe0fed7
11 changed files with 22 additions and 20 deletions

View File

@@ -85,7 +85,7 @@ def set_course_context(context, course_name):
context.course = course
membership = get_membership(course.name, frappe.session.user)
context.course.query_parameter = (
"?batch=" + membership.batch if membership and membership.batch else ""
"?batch=" + membership.batch_old if membership and membership.batch_old else ""
)
context.membership = membership
context.is_instructor = is_instructor(course.name)