fix: patch for published field
This commit is contained in:
@@ -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.multiple_instructors #11-02-2022
|
||||||
school.patches.v0_0.set_course_in_lesson #21-03-2022
|
school.patches.v0_0.set_course_in_lesson #21-03-2022
|
||||||
school.patches.v0_0.set_status_in_course #21-03-2022
|
school.patches.v0_0.set_status_in_course #21-03-2022
|
||||||
|
lms.patches.v0_0.change_published_field_data
|
||||||
|
|||||||
6
lms/patches/v0_0/change_published_field_data.py
Normal file
6
lms/patches/v0_0/change_published_field_data.py
Normal 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)
|
||||||
@@ -111,7 +111,7 @@ const mark_progress = (e) => {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
move_to_next_lesson(e);
|
move_to_next_lesson(status, e);
|
||||||
};
|
};
|
||||||
|
|
||||||
const change_progress_indicators = (status, e) => {
|
const change_progress_indicators = (status, e) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user