i woud like to have the attachment of me original ticket in the normal answer ticket.
My customer don't want to use the forward ticket.
For this i program these lines into
AgentTicketCompose.pm
# get last customer article or selected article ...
my %Data=();
if ( $GetParam{ArticleID} ) {
%Data = $Self->{TicketObject}->ArticleGet(
ArticleID => $GetParam{ArticleID},
DynamicFields => 0,
);
}
else {
%Data = $Self->{TicketObject}->ArticleLastCustomerArticle(
TicketID => $Self->{TicketID},
DynamicFields => 0,
);
}
# add attachmens to upload cache
my %AttachmentIndex = $Self->{TicketObject}->ArticleAttachmentIndex( %Data, );
foreach (keys %AttachmentIndex) {
my %Attachment = $Self->{TicketObject}->ArticleAttachment(
ArticleID => $Data{ArticleID},
FileID => $_,
);
$Self->{UploadCachObject}->FormIDAddFile(
FormID => $Self->{FormID},
%Attachment,
);
}
this should get the attachment from the original Ticket, but it doesnt

Any idears or tips what i can change orh how does it work.
i use OTRS 3.1.7