97
);
# history insert for SLA
my $HistorySLA = $Param{SLA} || 'NULL';
my $HistorySLAID = $Param{SLAID} || '';
$Self->HistoryAdd(
TicketID => $TicketID,
HistoryType => 'SLAUpdate',
Name => "\%\%$HistorySLA\%\%$HistorySLAID\%\%NULL\%\%",
CreateUserID => $Param{UserID},
);
}
if ( $Kernel::OM->Get('Kernel::Config')->Get('Ticket::Type') ) {
# Insert history record for ticket type, so that initial value can be seen.
# Please see bug#12702 for more information.
$Self->HistoryAdd(
TicketID => $TicketID,
HistoryType => 'TypeUpdate',
Name => "\%\%$Param{Type}\%\%$Param{TypeID}",
CreateUserID => $Param{UserID},
);
}
# set customer data if given
if ( $Param{CustomerNo} || $Param{CustomerID} || $Param{CustomerUser} ) {
$Self->TicketCustomerSet(
TicketID => $TicketID,
No => $Param{CustomerNo} || $Param{CustomerID} || '',