mirror of
https://github.com/frappe/lms.git
synced 2026-04-19 22:52:29 +03:00
fix: exclude demo course count before showing persona
This commit is contained in:
@@ -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' })
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user