Commit 90c4b0ca authored by Jérome Perrin's avatar Jérome Perrin

use the reference of the person returned by ERP5Site_getAuthenticatedPersonMemberValue as username

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@36030 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent efc300e7
......@@ -75,7 +75,7 @@ if person_value.getDefaultEmailText(\'\') in (\'\', None):\n
portal_status_message=translateString(\n
"You haven\'t defined your email address")))\n
\n
user_name = context.portal_membership.getAuthenticatedMember().getUserName()\n
user_name = person_value.getReference()\n
\n
# save request parameters\n
# XXX we exclude some reserved names in a very ad hoc way\n
......
......@@ -74,7 +74,7 @@ if person_value.getDefaultEmailText(\'\') in (\'\', None):\n
portal_status_message=N_("You haven\'t defined your email address")))\n
\n
active_process = portal.portal_activities.newActiveProcess()\n
user_name = context.portal_membership.getAuthenticatedMember().getUserName()\n
user_name = person_value.getReference()\n
\n
tag = \'active-report-%s\' % random.randint(0, 1000)\n
priority = 3\n
......
92
\ No newline at end of file
95
\ No newline at end of file
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