Fix website homepage validation

This commit is contained in:
Pratik Vyas 2015-05-04 15:21:25 +05:30
parent f9ebc77919
commit 14d6510ce9

View file

@ -20,7 +20,8 @@ class WebsiteSettings(Document):
if frappe.flags.in_install:
return
if self.home_page and not resolve_route(self.home_page):
frappe.throw(_("Invalid Home Page") + " (Standard pages - index, login, products, blog, about, contact)")
frappe.msgprint(_("Invalid Home Page") + " (Standard pages - index, login, products, blog, about, contact)")
self.home_page = ''
def validate_top_bar_items(self):
"""validate url in top bar items"""