"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Kernel/Modules/AgentTicketCompose.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").

AgentTicketCompose.pm  (otrs-5.0.39.tar.bz2):AgentTicketCompose.pm  (otrs-5.0.40.tar.bz2)
skipping to change at line 168 skipping to change at line 168
} }
} }
# 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
my %GetParam; my %GetParam;
for ( for (
qw( qw(
From To Cc Bcc Subject Body InReplyTo References ResponseID ReplyArticle ID StateID To Cc Bcc Subject Body InReplyTo References ResponseID ReplyArticleID St ateID
ArticleID ArticleTypeID TimeUnits Year Month Day Hour Minute FormID Repl yAll ArticleID ArticleTypeID TimeUnits Year Month Day Hour Minute FormID Repl yAll
) )
) )
{ {
$GetParam{$_} = $ParamObject->GetParam( Param => $_ ); $GetParam{$_} = $ParamObject->GetParam( Param => $_ );
} }
# hash for check duplicated entries # hash for check duplicated entries
my %AddressesList; my %AddressesList;
skipping to change at line 736 skipping to change at line 736
$Config->{DynamicField}->{ $DynamicFieldConfig->{Name} } == 2, $Config->{DynamicField}->{ $DynamicFieldConfig->{Name} } == 2,
ServerError => $ValidationResult->{ServerError} || '', ServerError => $ValidationResult->{ServerError} || '',
ErrorMessage => $ValidationResult->{ErrorMessage} || '', ErrorMessage => $ValidationResult->{ErrorMessage} || '',
LayoutObject => $LayoutObject, LayoutObject => $LayoutObject,
ParamObject => $ParamObject, ParamObject => $ParamObject,
AJAXUpdate => 1, AJAXUpdate => 1,
UpdatableFields => $Self->_GetFieldsToUpdate(), UpdatableFields => $Self->_GetFieldsToUpdate(),
); );
} }
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 $Output = $LayoutObject->Header( my $Output = $LayoutObject->Header(
Value => $Ticket{TicketNumber}, Value => $Ticket{TicketNumber},
Type => 'Small', Type => 'Small',
BodyClass => 'Popup', BodyClass => 'Popup',
); );
$GetParam{StandardResponse} = $GetParam{Body}; $GetParam{StandardResponse} = $GetParam{Body};
$Output .= $Self->_Mask( $Output .= $Self->_Mask(
skipping to change at line 761 skipping to change at line 766
Errors => \%Error, Errors => \%Error,
MultipleCustomer => \@MultipleCustomer, MultipleCustomer => \@MultipleCustomer,
MultipleCustomerCc => \@MultipleCustomerCc, MultipleCustomerCc => \@MultipleCustomerCc,
MultipleCustomerBcc => \@MultipleCustomerBcc, MultipleCustomerBcc => \@MultipleCustomerBcc,
Attachments => \@Attachments, Attachments => \@Attachments,
GetParam => \%GetParam, GetParam => \%GetParam,
TicketBackType => $TicketBackType, TicketBackType => $TicketBackType,
%Ticket, %Ticket,
DynamicFieldHTML => \%DynamicFieldHTML, DynamicFieldHTML => \%DynamicFieldHTML,
%GetParam, %GetParam,
From => $From,
); );
$Output .= $LayoutObject->Footer( $Output .= $LayoutObject->Footer(
Type => 'Small', Type => 'Small',
); );
return $Output; return $Output;
} }
# replace <OTRS_TICKET_STATE> with next ticket state name # replace <OTRS_TICKET_STATE> with next ticket state name
if ( $StateData{Name} ) { if ( $StateData{Name} ) {
$GetParam{Body} =~ s/<OTRS_TICKET_STATE>/$StateData{Name}/g; $GetParam{Body} =~ s/<OTRS_TICKET_STATE>/$StateData{Name}/g;
skipping to change at line 859 skipping to change at line 865
); );
} }
# send email # send email
my $ArticleID = $TicketObject->ArticleSend( my $ArticleID = $TicketObject->ArticleSend(
ArticleTypeID => $ArticleTypeID, ArticleTypeID => $ArticleTypeID,
SenderType => 'agent', SenderType => 'agent',
TicketID => $Self->{TicketID}, TicketID => $Self->{TicketID},
HistoryType => 'SendAnswer', HistoryType => 'SendAnswer',
HistoryComment => "\%\%$Recipients", HistoryComment => "\%\%$Recipients",
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. 4 change blocks. 
2 lines changed or deleted 9 lines changed or added

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