Create a copy of <OTRS_HOME>/ Kernel / GenericInterface / Operation / Ticket / TicketGet.pm in <OTRS_HOME> / Custom / Kernel / GenericInterface / Operation / Ticket
now open <OTRS_HOME> / Custom / Kernel / GenericInterface / Operation / Ticket / TicketGet.pm <-- the copy you just created
from line ~ 298 to 307 there should be this
Code: Select all
if ( !IsHashRefWithData( \%TicketEntry ) ) {
$ErrorMessage = 'Could not get Ticket data'
. ' in Kernel::GenericInterface::Operation::Ticket::TicketGet::Run()';
return $Self->{TicketCommonObject}->ReturnError(
ErrorCode => 'TicketGet.NotValidTicketID',
ErrorMessage => "TicketGet: $ErrorMessage",
);
}
right after it, paste this:
Code: Select all
$TicketEntry{TicketAccountedTime} = $Self->{TicketObject}->TicketAccountedTimeGet( TicketID => $TicketID ) || 0;
if you are using mod_perl, restart Apache.
that should do the trick.