fix: patch for published field

This commit is contained in:
Jannat Patel
2022-03-25 15:56:43 +05:30
parent 77df068fea
commit 56f4f6c977
3 changed files with 8 additions and 1 deletions

View File

@@ -24,3 +24,4 @@ execute:frappe.delete_doc("Custom Field", "User-verify_age", ignore_missing=True
school.patches.v0_0.multiple_instructors #11-02-2022
school.patches.v0_0.set_course_in_lesson #21-03-2022
school.patches.v0_0.set_status_in_course #21-03-2022
lms.patches.v0_0.change_published_field_data

View File

@@ -0,0 +1,6 @@
import frappe
def execute():
courses = frappe.get_all("LMS Course", fields=["name", "is_published"])
for course in courses:
frappe.db.set_value("LMS Course", course.name, "published", course.is_published)

View File

@@ -111,7 +111,7 @@ const mark_progress = (e) => {
});
}
else
move_to_next_lesson(e);
move_to_next_lesson(status, e);
};
const change_progress_indicators = (status, e) => {