fix: exclude demo course count before showing persona

This commit is contained in:
Jannat Patel
2026-03-06 17:51:40 +05:30
parent 3889893b2f
commit 711d89b603
3 changed files with 8 additions and 4 deletions

View File

@@ -87,6 +87,9 @@ const identifyUserPersona = async () => {
if (personaCaptured) return
let courseCount = await call('frappe.client.get_count', {
doctype: 'LMS Course',
filters: {
title: ['not like', '%A guide to Frappe Learning%'],
},
})
if (!courseCount) {
router.push({ name: 'PersonaForm' })

View File

@@ -154,7 +154,8 @@
"fieldname": "source",
"fieldtype": "Link",
"label": "Source",
"options": "LMS Source"
"options": "LMS Source",
"reqd": 1
},
{
"default": "0",
@@ -202,8 +203,8 @@
"link_fieldname": "payment"
}
],
"modified": "2026-02-03 10:54:12.361407",
"modified_by": "sayali@frappe.io",
"modified": "2026-03-06 17:38:02.235044",
"modified_by": "Administrator",
"module": "LMS",
"name": "LMS Payment",
"owner": "Administrator",

View File

@@ -499,7 +499,7 @@
"issingle": 1,
"links": [],
"modified": "2026-03-05 13:57:56.303744",
"modified_by": "sayali@frappe.io",
"modified_by": "Administrator",
"module": "LMS",
"name": "LMS Settings",
"owner": "Administrator",