fix: check app logo from website settings before checking navbar settings
(cherry picked from commit 3db7f7a674930c864fa0aa6ed89cc43d2e32c46f)
This commit is contained in:
parent
4353a7991d
commit
ae1c887b58
1 changed files with 4 additions and 1 deletions
|
|
@ -24,7 +24,10 @@ class NavbarSettings(Document):
|
|||
|
||||
|
||||
def get_app_logo():
|
||||
app_logo = frappe.db.get_single_value("Navbar Settings", "app_logo", cache=True)
|
||||
app_logo = frappe.get_website_settings("app_logo")
|
||||
if not app_logo:
|
||||
app_logo = frappe.db.get_single_value("Navbar Settings", "app_logo", cache=True)
|
||||
|
||||
if not app_logo:
|
||||
logos = frappe.get_hooks("app_logo_url")
|
||||
app_logo = logos[0]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue