fix: minor issues
This commit is contained in:
@@ -72,7 +72,8 @@ frappe.ready(() => {
|
||||
method: "community.lms.doctype.lms_batch_membership.lms_batch_membership.update_current_membership",
|
||||
args: {
|
||||
"batch": "{{ batch.name }}",
|
||||
"course": "{{ batch.course}}"
|
||||
"course": "{{ batch.course}}",
|
||||
"member": frappe.session.user
|
||||
},
|
||||
callback: (data) => {
|
||||
window.location.href = "/courses/{{ batch.course }}/home"
|
||||
|
||||
@@ -11,7 +11,7 @@ def get_common_context(context):
|
||||
context.template = "www/404.html"
|
||||
return
|
||||
|
||||
batch_name = course.get_current_batch()
|
||||
batch_name = course.get_current_batch(frappe.session.user)
|
||||
batch = course.get_batch(batch_name)
|
||||
context.batch = batch
|
||||
if batch_name:
|
||||
|
||||
Reference in New Issue
Block a user