fix: replaced batch references

This commit is contained in:
Jannat Patel
2023-08-26 15:44:19 +05:30
parent 09dbe0fed7
commit c350ce1b60
9 changed files with 21 additions and 19 deletions

View File

@@ -51,7 +51,7 @@ frappe.ready(() => {
frappe.call({
"method": "lms.lms.doctype.lms_batch_membership.lms_batch_membership.create_membership",
"args": {
"batch": {{ batch.name }},
"batch_old": {{ batch.name }},
"course": {{ batch.course }}
},
"callback": (data) => {

View File

@@ -72,7 +72,7 @@ def get_context(context):
context.page_extensions = get_page_extensions(context)
context.page_context = {
"course": context.course.name,
"batch": context.batch_old,
"batch_old": context.batch_old,
"lesson": context.lesson.name if context.lesson.name else "New Lesson",
"is_member": context.membership is not None,
}