Edgewall Software
Modify

Opened 19 years ago

Closed 19 years ago

Last modified 18 years ago

#1543 closed defect (wontfix)

get_reporter_id weird behavior

Reported by: Florent Thoumie <flz@…> Owned by: Jonas Borgström
Priority: normal Milestone:
Component: ticket system Version: 0.8.1
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

Even with Name/Email values filled in Settings this still reports login instead of "Name <login@…>".

Here is a patch to address this (against 0.8.1 release) :

—- patch-trac_util.py ends here —-

—- trac/util.py.orig 2005-05-13 10:11:03.837539456 +0200 +++ trac/util.py 2005-05-13 10:08:32.903484920 +0200 @@ -256,9 +256,7 @@

name = req.session.get('name', None) email = req.session.get('email', None)

  • if req.authname != 'anonymous':
  • return req.authname
  • elif name and email:

+ if name and email:

return '%s <%s>' % (name, email)

elif not name and email:

return email

—- patch-trac_util.py ends here —-

Attachments (1)

patch-trac_util.py (433 bytes ) - added by Florent Thoumie <flz@…> 19 years ago.
Corrects get_reporter_id behavior for !anonymous users with details set.

Download all attachments as: .zip

Change History (3)

by Florent Thoumie <flz@…>, 19 years ago

Attachment: patch-trac_util.py added

Corrects get_reporter_id behavior for !anonymous users with details set.

comment:1 by Christopher Lenz, 19 years ago

Resolution: wontfix
Status: newclosed

This behavior is by design. See #460 for background info.

comment:2 by Christopher Lenz, 19 years ago

Milestone: 0.8.2

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jonas Borgström.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jonas Borgström to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.