Commit 6edc74f5 authored by Sven Franck's avatar Sven Franck Committed by Xiaowu Zhang

erp5_corporate_identity: don't depend on active preference

parent a3ae0d6b
...@@ -7,7 +7,7 @@ Return template parameters from portal-preferences (all calls go through here) ...@@ -7,7 +7,7 @@ Return template parameters from portal-preferences (all calls go through here)
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
# parameter Parameter to lookup # parameter Parameter to lookup
pref = context.getPortalObject().portal_preferences.getActivePreference() pref = context.getPortalObject().portal_preferences
if parameter == "default_company_relative_url": if parameter == "default_company_relative_url":
return pref.getPreferredCorporateIdentityTemplateDefaultOrganisationRelativeUrl() return pref.getPreferredCorporateIdentityTemplateDefaultOrganisationRelativeUrl()
......
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