From c22eef28f7cf8dac07cef84f1c5b18084d6b5b9c Mon Sep 17 00:00:00 2001 From: scmmishra Date: Mon, 18 Mar 2019 15:36:49 +0530 Subject: [PATCH] fix: LMS Title Shows default company name if LMS title not set --- erpnext/www/lms.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/erpnext/www/lms.py b/erpnext/www/lms.py index 9d02e52f06..2e056d56a7 100644 --- a/erpnext/www/lms.py +++ b/erpnext/www/lms.py @@ -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. """ + from erpnext import get_default_company + settings = frappe.get_doc("Education Settings") - title = settings.portal_title + title = settings.portal_title or get_default_company() description = settings.description return dict(title=title, description=description)