Commit 03395501 authored by Jérome Perrin's avatar Jérome Perrin Committed by Eteri

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

parent 3e43c1d9
......@@ -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