Hi list,
I would like to add <OTRS_TICKET_NUMBER> variable on AgentCompose.pm.
I add a line as follows.
# --
# prepare signature
# --
$Data{Signature} = $Self->{QueueObject}->GetSignature(%Ticket);
foreach (qw(Signature Salutation)) {
$Data{$_} =~ s/<OTRS_FIRST_NAME>/$Self->{UserFirstname}/g;
$Data{$_} =~ s/<OTRS_LAST_NAME>/$Self->{UserLastname}/g;
$Data{$_} =~ s/<OTRS_USER_ID>/$Self->{UserID}/g;
$Data{$_} =~ s/<OTRS_USER_LOGIN>/$Self->{UserLogin}/g;
# added line
$Data{$_} =~ s/<OTRS_TICKET_NUMBER>/\[$TicketHook: $Ticket{TicketNumber}\]/g;
It works well for me.
My question is why these variables below are not supported on AgentCompose.pm?
<OTRS_CUSTOMER_SUBJECT[20]>
<OTRS_CUSTOMER_EMAIL[5]>
<OTRS_CUSTOMER_FROM>
<OTRS_TICKET_NUMBER>
<OTRS_TICKET_ID>
Another question is ; Can we use these variables in admin response edit form?
I mean it should be same as auto-response edit form. Am I wrong?
Thank you.
Shozo
_______________________________________________
OTRS mailing list: dev - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/dev
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev