fix: course enrollment

This commit is contained in:
Jannat Patel
2023-08-29 22:25:40 +05:30
parent f600f016ae
commit 018c26b885
2 changed files with 2 additions and 2 deletions

View File

@@ -83,7 +83,7 @@ const enroll_in_course = (e) => {
let batch = $(e.currentTarget).attr("data-batch"); let batch = $(e.currentTarget).attr("data-batch");
batch = batch ? decodeURIComponent(batch) : ""; batch = batch ? decodeURIComponent(batch) : "";
frappe.call({ 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: { args: {
batch: batch ? batch : "", batch: batch ? batch : "",
course: course, course: course,

View File

@@ -49,7 +49,7 @@
frappe.ready(() => { frappe.ready(() => {
$("#confirm").click((e) => { $("#confirm").click((e) => {
frappe.call({ 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": { "args": {
"batch_old": {{ batch.name }}, "batch_old": {{ batch.name }},
"course": {{ batch.course }} "course": {{ batch.course }}