diff --git a/lms/public/js/common_functions.js b/lms/public/js/common_functions.js index 6911b0a9..224bcb28 100644 --- a/lms/public/js/common_functions.js +++ b/lms/public/js/common_functions.js @@ -83,7 +83,7 @@ const enroll_in_course = (e) => { let batch = $(e.currentTarget).attr("data-batch"); batch = batch ? decodeURIComponent(batch) : ""; frappe.call({ - method: "lms.lms.doctype.lms_batch_membership.lms_batch_membership.create_membership", + method: "lms.lms.doctype.lms_enrollment.lms_enrollment.create_membership", args: { batch: batch ? batch : "", course: course, diff --git a/lms/www/batch/join.html b/lms/www/batch/join.html index e2ccd60d..3377ebce 100644 --- a/lms/www/batch/join.html +++ b/lms/www/batch/join.html @@ -49,7 +49,7 @@ frappe.ready(() => { $("#confirm").click((e) => { frappe.call({ - "method": "lms.lms.doctype.lms_batch_membership.lms_batch_membership.create_membership", + "method": "lms.lms.doctype.lms_enrollment.lms_enrollment.create_membership", "args": { "batch_old": {{ batch.name }}, "course": {{ batch.course }}