#1543 closed defect (wontfix)
get_reporter_id weird behavior
| Reported by: | 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)
Change History (3)
by , 21 years ago
| Attachment: | patch-trac_util.py added |
|---|
comment:1 by , 21 years ago
| Resolution: | → wontfix |
|---|---|
| Status: | new → closed |
This behavior is by design. See #460 for background info.
comment:2 by , 21 years ago
| Milestone: | 0.8.2 |
|---|



Corrects get_reporter_id behavior for !anonymous users with details set.