Hi!

This little dirty hack adds the 'attachment feature' to your AgentPhoneView. Perhaps it's useful for you, too ...

[OPEN]
Kernel/Output/HTML/Standard/AgentPhoneNew.dtl

[FIND]
<form action="$Env{"CGIHandle"}" method="post" name="compose">

[CHANGE TO]
<form action="$Env{"CGIHandle"}" method="post" name="compose" enctype="multipart/form-data">


[OPEN]
Kernel/Modules/AgentPhone.pm

[FIND IN SUB RUN]
[LINE ~529]
[CASE]
# create new ticket and article
    elsif ($Self->{Subaction} eq 'StoreNew') {

# --
# should i set an unlock?
# --

[ADD BEFORE]
my %UploadStuff = $Self->{ParamObject}->GetUploadAll(
        Param => 'file_upload',
        Source => 'String',
);
if (%UploadStuff) {
        $Self->{TicketObject}->WriteArticlePart(
                %UploadStuff,
                ArticleID => $ArticleID,
                UserID => $Self->{UserID},
        );
}

MfG
Christian Junk
Tobias Kr�mer
_______________________________________________
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

Reply via email to