Commit 23d2d9f7 authored by Sven Franck's avatar Sven Franck

erp5_corporate_identity: test if logo cannot be found due to acquisition.

parent e9a218e9
......@@ -30,7 +30,8 @@ theme = (
)
if theme is not None:
theme = theme.lower()
theme_logo_prefix = context.Base_getCustomTemplateParameter("default_logo_prefix")
#theme_logo_prefix = context.Base_getCustomTemplateParameter("default_logo_prefix")
theme_logo_prefix = "NXD-Template.Logo."
if theme_logo_prefix:
theme_reference = theme_logo_prefix + theme.capitalize()
theme_logo_list = context.Base_getCustomTemplateProxyParameter("logo", theme_reference)
......@@ -42,6 +43,7 @@ if theme is None:
theme_dict = {}
theme_dict["theme"] = theme
theme_dict["theme_logo_description"] = theme_logo_dict.get("description", blank)
# XXX this one is hard to get in test environment
theme_dict["theme_logo_url"] = context.Base_getCustomTemplateParameter("fallback_image")
if theme_logo_dict.get("relative_url", None) is not None:
theme_dict["theme_logo_url"] = theme_logo_dict.get("relative_url") + param
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment