Fix website homepage validation
This commit is contained in:
parent
f9ebc77919
commit
14d6510ce9
1 changed files with 2 additions and 1 deletions
|
|
@ -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"""
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue