Commit 0c223280 authored by Sven Franck's avatar Sven Franck

erp5_corporate_identity: don't depend on active preference

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