mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-18 17:15:04 +00:00
[patch] [fix]
This commit is contained in:
@@ -8,7 +8,7 @@ def execute():
|
||||
if header and header.startswith("<div class='hero text-center'>"):
|
||||
homepage = frappe.get_doc('Homepage', 'Homepage')
|
||||
homepage.company = erpnext.get_default_company()
|
||||
homepage.tagline = header.split('<h1>')[1].split('</h1>')[0]
|
||||
homepage.tagline = header.split('<h1>')[1].split('</h1>')[0] or 'Default Website'
|
||||
homepage.setup_items()
|
||||
homepage.save()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user