[patch] [fix]

This commit is contained in:
Rushabh Mehta 2016-05-15 10:07:36 +05:30
parent a5e4dc85db
commit c8b2a9d654

View File

@ -8,7 +8,7 @@ def execute():
if header and header.startswith("<div class='hero text-center'>"): if header and header.startswith("<div class='hero text-center'>"):
homepage = frappe.get_doc('Homepage', 'Homepage') homepage = frappe.get_doc('Homepage', 'Homepage')
homepage.company = erpnext.get_default_company() homepage.company = erpnext.get_default_company()
homepage.tagline = header.split('<h1>')[1].split('</h1>')[0] or 'Default Website' homepage.tag_line = header.split('<h1>')[1].split('</h1>')[0] or 'Default Website'
homepage.setup_items() homepage.setup_items()
homepage.save() homepage.save()