"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Kernel/Modules/AgentTicketForward.pm" between
otrs-5.0.39.tar.bz2 and otrs-5.0.40.tar.bz2

About: OTRS (formerly "Open Ticket Request System" now "Open Technology – Real Service") is a web-based ticketing systems used for Customer Service, Help Desk, IT Service Management. 5.x release ("Community Edition").

AgentTicketForward.pm  (otrs-5.0.39.tar.bz2):AgentTicketForward.pm  (otrs-5.0.40.tar.bz2)
skipping to change at line 34 skipping to change at line 34
my $Self = {%Param}; my $Self = {%Param};
bless( $Self, $Type ); bless( $Self, $Type );
$Self->{Debug} = $Param{Debug} || 0; $Self->{Debug} = $Param{Debug} || 0;
# get param object # get param object
my $ParamObject = $Kernel::OM->Get('Kernel::System::Web::Request'); my $ParamObject = $Kernel::OM->Get('Kernel::System::Web::Request');
# get params # get params
for ( for (
qw(From To Cc Bcc Subject Body InReplyTo References ComposeStateID Artic leTypeID qw(To Cc Bcc Subject Body InReplyTo References ComposeStateID ArticleTyp eID
ArticleID TimeUnits Year Month Day Hour Minute FormID) ArticleID TimeUnits Year Month Day Hour Minute FormID)
) )
{ {
my $Value = $ParamObject->GetParam( Param => $_ ); my $Value = $ParamObject->GetParam( Param => $_ );
if ( defined $Value ) { if ( defined $Value ) {
$Self->{GetParam}->{$_} = $Value; $Self->{GetParam}->{$_} = $Value;
} }
} }
$Self->{GetParam}->{ForwardTemplateID} = $ParamObject->GetParam( Param => 'F orwardTemplateID' ) || ''; $Self->{GetParam}->{ForwardTemplateID} = $ParamObject->GetParam( Param => 'F orwardTemplateID' ) || '';
skipping to change at line 928 skipping to change at line 928
Disposition => 'attachment', Disposition => 'attachment',
%UploadStuff, %UploadStuff,
); );
} }
# get all attachments meta data # get all attachments meta data
my @Attachments = $UploadCacheObject->FormIDGetAllFilesMeta( my @Attachments = $UploadCacheObject->FormIDGetAllFilesMeta(
FormID => $GetParam{FormID}, FormID => $GetParam{FormID},
); );
my $From = $Kernel::OM->Get('Kernel::System::TemplateGenerator')->Sender(
QueueID => $Ticket{QueueID},
UserID => $Self->{UserID},
);
# check if there is an error # check if there is an error
if (%Error) { if (%Error) {
my $QueueID = $TicketObject->TicketQueueID( TicketID => $Self->{TicketID } ); my $QueueID = $TicketObject->TicketQueueID( TicketID => $Self->{TicketID } );
my $Output = $LayoutObject->Header( my $Output = $LayoutObject->Header(
Type => 'Small', Type => 'Small',
BodyClass => 'Popup', BodyClass => 'Popup',
); );
$Output .= $Self->_Mask( $Output .= $Self->_Mask(
TicketNumber => $Ticket{TicketNumber}, TicketNumber => $Ticket{TicketNumber},
skipping to change at line 1046 skipping to change at line 1051
Comment => Translatable('Please contact the administrator.'), Comment => Translatable('Please contact the administrator.'),
); );
} }
my $ArticleID = $TicketObject->ArticleSend( my $ArticleID = $TicketObject->ArticleSend(
ArticleTypeID => $ArticleTypeID, ArticleTypeID => $ArticleTypeID,
SenderType => 'agent', SenderType => 'agent',
TicketID => $Self->{TicketID}, TicketID => $Self->{TicketID},
HistoryType => 'Forward', HistoryType => 'Forward',
HistoryComment => "\%\%$To", HistoryComment => "\%\%$To",
From => $GetParam{From}, From => $From,
To => $GetParam{To}, To => $GetParam{To},
Cc => $GetParam{Cc}, Cc => $GetParam{Cc},
Bcc => $GetParam{Bcc}, Bcc => $GetParam{Bcc},
Subject => $GetParam{Subject}, Subject => $GetParam{Subject},
UserID => $Self->{UserID}, UserID => $Self->{UserID},
Body => $GetParam{Body}, Body => $GetParam{Body},
InReplyTo => $GetParam{InReplyTo}, InReplyTo => $GetParam{InReplyTo},
References => $GetParam{References}, References => $GetParam{References},
Charset => $LayoutObject->{UserCharset}, Charset => $LayoutObject->{UserCharset},
MimeType => $MimeType, MimeType => $MimeType,
 End of changes. 3 change blocks. 
2 lines changed or deleted 7 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)