Hi community,
I would like to keep the subject of the last email when replying in a ticket as a customer from the customer frontend in otrs. At the moment I will always have the ticket title automatically set as subject, how can I change this?
Regards, Rick
keep email subject when replying from customer frontend
Moderator: crythias
keep email subject when replying from customer frontend
Znuny 6.5 LTS - Ubuntu 20.04 x64, Azure Database for MySQL server 5.7, Perl 5.22.1, Apache/2.4.18
Re: keep email subject when replying from customer frontend
Hi again,
does really no one has an idea how to fix this? If you do not understand my description please don't hesitate to ask.
Thank you in advance!
does really no one has an idea how to fix this? If you do not understand my description please don't hesitate to ask.
Thank you in advance!
Znuny 6.5 LTS - Ubuntu 20.04 x64, Azure Database for MySQL server 5.7, Perl 5.22.1, Apache/2.4.18
Re: keep email subject when replying from customer frontend
Alright, I figured out by myself how to achieve this.
The reply in a customer ticket is handled via CustomerTicketZoom.pm which is located in OTRS\Kernel\Modules. I had a look at the customer fronted and reviewed the source code, this way I found out that "$Param{Title}" is the parameter that sets the title in a customers reply.
I also had a look at the part that is displaying the subject of the last email and so I found "$Article{Subject}". By replacing $Param{Title} with $Article{Subject} I finally got the result that I expected.
The reply in a customer ticket is handled via CustomerTicketZoom.pm which is located in OTRS\Kernel\Modules. I had a look at the customer fronted and reviewed the source code, this way I found out that "$Param{Title}" is the parameter that sets the title in a customers reply.
Code: Select all
# check subject
if ( !$Param{Subject} ) {
$Param{Subject} = "Re: $Param{Title}";
}
Code: Select all
# check subject - show last email subject instead of ticket title
if ( !$Param{Subject} ) {
$Param{Subject} = "Re: $Article{Subject}";
}
Znuny 6.5 LTS - Ubuntu 20.04 x64, Azure Database for MySQL server 5.7, Perl 5.22.1, Apache/2.4.18