mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-21 05:59:18 +00:00
fix: LMS Title
Shows default company name if LMS title not set
This commit is contained in:
@@ -31,8 +31,10 @@ def get_portal_details():
|
|||||||
"""
|
"""
|
||||||
Returns portal details from Education Settings Doctype. This contains the Title and Description for LMS amoung other things.
|
Returns portal details from Education Settings Doctype. This contains the Title and Description for LMS amoung other things.
|
||||||
"""
|
"""
|
||||||
|
from erpnext import get_default_company
|
||||||
|
|
||||||
settings = frappe.get_doc("Education Settings")
|
settings = frappe.get_doc("Education Settings")
|
||||||
title = settings.portal_title
|
title = settings.portal_title or get_default_company()
|
||||||
description = settings.description
|
description = settings.description
|
||||||
return dict(title=title, description=description)
|
return dict(title=title, description=description)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user