From 018c26b8858584fa2bbc3911453ce1d0acaf6708 Mon Sep 17 00:00:00 2001 From: Jannat Patel Date: Tue, 29 Aug 2023 22:25:40 +0530 Subject: [PATCH] fix: course enrollment --- lms/public/js/common_functions.js | 2 +- lms/www/batch/join.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 }}