fix retrieval of user name for actions performed by submitter

This commit is contained in:
Frédéric Péters 2012-08-16 14:05:08 +02:00
parent 2e87deff53
commit c2587d6467
1 changed files with 5 additions and 1 deletions

View File

@ -519,8 +519,12 @@ class FormDef(StorableObject):
details = []
evo = formdata.evolution[-1]
if evo.who:
if evo.who == '_submitter':
evo_who = formdata.user_id
else:
evo_who = evo.who
details.append(_('User name'))
details.append(' %s' % get_publisher().user_class.get(evo.who).name)
details.append(' %s' % get_publisher().user_class.get(evo_who).name)
if evo.status:
details.append(_('Status'))
details.append(' %s' % formdata.get_status_label())