Opened 6 years ago
Closed 6 years ago
#13072 closed defect (duplicate)
Wrong sender on ticket attachment notification
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | ticket system | Version: | 1.2.2 |
Severity: | normal | Keywords: | notification, attachment |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
We use Trac v1.2.2 with the option smtp_from_author
enabled.
When an attachment is added to a ticket, the displayed author for the attachment is correct on the ticket page, but the from
field in the email notification indicates the reporter of the ticket instead of the author of the attachment.
In the _notify_attachment()
function in ticket/notification.py
: TicketChangeEvent
object is instanciated with ticket[reporter]
as author
instead of attachment.author
.
It looks like it is done on purpose, but i'm not sure why (maybe the attachment.author
attribute is not always available?).
Attachments (0)
Change History (2)
comment:1 by , 6 years ago
comment:2 by , 6 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Closing as duplicate of #13029. The issue should be fixed by the patch in comment:2:ticket:13029.
See #13029