Commit bb7c472a authored by Jérome Perrin's avatar Jérome Perrin

fixup! Reduce reliance on Person.reference as a user id.

parent e2fc1684
...@@ -14,7 +14,7 @@ if not context.Person_getUserId(): ...@@ -14,7 +14,7 @@ if not context.Person_getUserId():
from Products.ERP5Type.Message import translateString from Products.ERP5Type.Message import translateString
preference = portal.portal_preferences.createPreferenceForUser( preference = portal.portal_preferences.createPreferenceForUser(
context.getReference(), enable=True) context.Person_getUserId(), enable=True)
preference.setTitle(translateString('Preference for ${name}', preference.setTitle(translateString('Preference for ${name}',
mapping=dict(name=context.getTitle().decode('utf-8')))) mapping=dict(name=context.getTitle().decode('utf-8'))))
......
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