Edgewall Software
Modify

Opened 6 years ago

Closed 6 years ago

#13072 closed defect (duplicate)

Wrong sender on ticket attachment notification

Reported by: ebouaziz@… 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 anonymous, 6 years ago

See #13029

comment:2 by Ryan J Ollos, 6 years ago

Resolution: duplicate
Status: newclosed

Closing as duplicate of #13029. The issue should be fixed by the patch in comment:2:ticket:13029.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from (none) 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.