From 0ddf2aad792b3d15b60b24114343351f056b776d Mon Sep 17 00:00:00 2001 From: Jannat Patel Date: Thu, 7 Apr 2022 22:27:26 +0530 Subject: [PATCH] fix: removed certification student to member rename patch --- lms/patches.txt | 1 - lms/patches/v0_0/move_certification_to_certificate.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/lms/patches.txt b/lms/patches.txt index 6a08bbf4..67ba2b39 100644 --- a/lms/patches.txt +++ b/lms/patches.txt @@ -26,5 +26,4 @@ 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 #25-03-2022 execute:frappe.delete_doc("Workspace", "School", ignore_missing=True, force=True) -lms.patches.v0_0.certification_member_field_data #04-04-2022 lms.patches.v0_0.move_certification_to_certificate diff --git a/lms/patches/v0_0/move_certification_to_certificate.py b/lms/patches/v0_0/move_certification_to_certificate.py index 5c386a8d..d0eb3258 100644 --- a/lms/patches/v0_0/move_certification_to_certificate.py +++ b/lms/patches/v0_0/move_certification_to_certificate.py @@ -6,7 +6,7 @@ def execute(): frappe.get_doc({ "doctype": "LMS Certificate", "course": data.course, - "member": data.member or data.student, + "member": data.student, "issue_date": data.issue_date, "expiry_date": data.expiry_date }).save(ignore_permissions=True)