Commit 5750c171 authored by Jérome Perrin's avatar Jérome Perrin

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

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