Commit 6481a2a2 authored by Jérome Perrin's avatar Jérome Perrin

put the preference tool itself in form TALES context, not only the active preference


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4054 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 48d7a5ef
......@@ -71,8 +71,7 @@ def get_value(self, id, **kw):
kw['here'] = object
kw['container'] = container
try :
kw['preferences'] = object.getPortalObject()\
.portal_preferences.getActivePreference()
kw['preferences'] = object.getPortalObject().portal_preferences
except AttributeError :
LOG('ERP5Form', 0,
'portal_preferences not put in TALES context (not installed?)')
......
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