refactor: changed Certified Members to Certifications
This commit is contained in:
@@ -336,8 +336,8 @@ const tabsStructure = computed(() => {
|
||||
type: 'checkbox',
|
||||
},
|
||||
{
|
||||
label: 'Certified Members',
|
||||
name: 'certified_members',
|
||||
label: 'Certifications',
|
||||
name: 'certifications',
|
||||
type: 'checkbox',
|
||||
},
|
||||
{
|
||||
|
||||
@@ -422,7 +422,7 @@ export function getSidebarLinks() {
|
||||
activeFor: ['Batches', 'BatchDetail', 'Batch', 'BatchForm'],
|
||||
},
|
||||
{
|
||||
label: 'Certified Members',
|
||||
label: 'Certifications',
|
||||
icon: 'GraduationCap',
|
||||
to: 'CertifiedParticipants',
|
||||
activeFor: ['CertifiedParticipants'],
|
||||
|
||||
@@ -507,7 +507,7 @@ def get_sidebar_settings():
|
||||
items = [
|
||||
"courses",
|
||||
"batches",
|
||||
"certified_members",
|
||||
"certifications",
|
||||
"jobs",
|
||||
"statistics",
|
||||
"notifications",
|
||||
|
||||
@@ -35,8 +35,8 @@
|
||||
"items_in_sidebar_section",
|
||||
"courses",
|
||||
"batches",
|
||||
"certified_participants",
|
||||
"certified_members",
|
||||
"certifications",
|
||||
"programming_exercises",
|
||||
"column_break_exdz",
|
||||
"jobs",
|
||||
@@ -279,13 +279,6 @@
|
||||
"fieldtype": "Check",
|
||||
"label": "Batches"
|
||||
},
|
||||
{
|
||||
"default": "1",
|
||||
"fieldname": "certified_participants",
|
||||
"fieldtype": "Check",
|
||||
"hidden": 1,
|
||||
"label": "Certified Participants"
|
||||
},
|
||||
{
|
||||
"default": "1",
|
||||
"fieldname": "jobs",
|
||||
@@ -403,6 +396,7 @@
|
||||
"default": "0",
|
||||
"fieldname": "certified_members",
|
||||
"fieldtype": "Check",
|
||||
"hidden": 1,
|
||||
"label": "Certified Members"
|
||||
},
|
||||
{
|
||||
@@ -439,13 +433,19 @@
|
||||
"fieldname": "contact_us_url",
|
||||
"fieldtype": "Data",
|
||||
"label": "Contact Us URL"
|
||||
},
|
||||
{
|
||||
"default": "0",
|
||||
"fieldname": "certifications",
|
||||
"fieldtype": "Check",
|
||||
"label": "Certifications"
|
||||
}
|
||||
],
|
||||
"grid_page_length": 50,
|
||||
"index_web_pages_for_search": 1,
|
||||
"issingle": 1,
|
||||
"links": [],
|
||||
"modified": "2025-10-03 17:41:30.904723",
|
||||
"modified": "2025-10-06 10:27:41.117864",
|
||||
"modified_by": "sayali@frappe.io",
|
||||
"module": "LMS",
|
||||
"name": "LMS Settings",
|
||||
|
||||
@@ -112,3 +112,4 @@ lms.patches.v2_0.move_batch_instructors_to_evaluators
|
||||
lms.patches.v2_0.enable_programming_exercises_in_sidebar
|
||||
lms.patches.v2_0.count_in_program
|
||||
lms.patches.v2_0.fix_scorm_lesson_reference_idx #02-09-2025
|
||||
lms.patches.v2_0.certified_members_to_certifications #05-10-2025
|
||||
8
lms/patches/v2_0/certified_members_to_certifications.py
Normal file
8
lms/patches/v2_0/certified_members_to_certifications.py
Normal file
@@ -0,0 +1,8 @@
|
||||
import frappe
|
||||
|
||||
|
||||
def execute():
|
||||
show_certifications = frappe.db.get_single_value("LMS Settings", "certified_members")
|
||||
|
||||
if show_certifications:
|
||||
frappe.db.set_single_value("LMS Settings", "certifications", 1)
|
||||
Reference in New Issue
Block a user