Ticket Create time

Moderator: crythias

Locked
azady_part
Znuny newbie
Posts: 7
Joined: 09 Mar 2011, 11:22
Znuny Version: 3

Ticket Create time

Post by azady_part »

hi every body

I want customer see the date of ticket created. I use created value in CustomerTicketOverView.pm but the problem is that date show to Customer is Change time of ticket that's means when a ticket created and customer or agent answered to it time of this answers show ...

Thnks
azady_part
Znuny newbie
Posts: 7
Joined: 09 Mar 2011, 11:22
Znuny Version: 3

Re: Ticket Create time

Post by azady_part »

I find the solution

I add some code in Kernel/Modules/CustomerTicketOverview.pm this code is:

Code: Select all

# get ticket title
    my %Ticket = $Self->{TicketObject}->TicketGet( TicketID => $Param{TicketID} );

		
		
		
    # add block
    $Self->{LayoutObject}->Block(
        Name => 'Record',
        Data => {
            %Article,
            Subject => $Subject,
            Created =>  $Ticket{Created},
            %Param,
        },
    );
this is because when a ticket updated , Article table in database change to field Created_time and Changed_time and update to current time. I Used Ticket table instead of Article table and the problem solved.
Locked