Opened 19 years ago
Closed 15 years ago
#2178 closed enhancement (duplicate)
Show users' name instead of username (login) in ticket's owner field
Reported by: | Owned by: | Jonas Borgström | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | general | Version: | devel |
Severity: | normal | Keywords: | |
Cc: | vyt@…, dserodio@…, mat@…, yotta@…, trac@…, a.a.vykhodtsev@… | Branch: | |
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
My users asked me if it was possible to show the user's name (real name) instead of the username (login) in the 'Assign to' drop-down, so I implemented this feature.
It works like this:
Attachments (3)
Change History (16)
by , 19 years ago
Attachment: | trac-owner-show-name.patch added |
---|
comment:1 by , 19 years ago
Cc: | added |
---|
IMHO, username also should be available in selection, for example as:
Name (username)
comment:2 by , 19 years ago
This patch breaks notification!!'''
Stil working on patch for this patch. If anybody finds solution for this problem sooner, please post it here!
comment:3 by , 19 years ago
I think I fixed it! At source:/trunk/trac/Notify.py@2333#L85 change username with name! It works for me, as far as I tested it!
comment:4 by , 19 years ago
Cc: | added |
---|
Sorry for jumping the gun on this, I didn't test notification before submitting this patch.
Digging deeper, I found that the <select> fields didn't have a value attribute (#2063), so the "label" (show to the user) has to be the same as the "value" (foreign key to the selected entity).
So I implemented a fix for both this ticket and #2063, but it's a much more "intrusive" change, if anyone wants to help me test it, I'd be thankful.
I also implemented your sugestion, so if restrict_owners=name+username
, User's Name (username) is shown.
PS: Should I accept this ticket, or should only "comitters" accept tickets?
by , 19 years ago
Attachment: | trac-r2353.fix-2178-and-2063.diff added |
---|
New patch, replaces the previous one
by , 19 years ago
Attachment: | trac-r2353.fix-2178-and-2063-v2.diff added |
---|
Sorry, the previous patch had some "leftovers"
comment:5 by , 19 years ago
Danial, in your patch trac-r2353.fix-2178-and-2063-v2.diff exist mistype, templates/ticket.cs (for line 197):
<?cs var option:value ?>
Now this patch is huge for me, since I have already some modifications of code for translation.
Please update patch against trac-0.9 release and I'll try it again.
comment:8 by , 19 years ago
I think it would be worth waiting for the IUserDirectory implementation.
comment:9 by , 19 years ago
Cc: | added |
---|
comment:10 by , 19 years ago
Cc: | added |
---|
comment:11 by , 17 years ago
Cc: | added |
---|
comment:12 by , 16 years ago
Cc: | added |
---|
comment:13 by , 15 years ago
Milestone: | 0.13 |
---|---|
Resolution: | → duplicate |
Status: | new → closed |
Superseded by #7339.
Patch against r2322