Skip to content

Commit

Permalink
Issue #1826: Pass on Created value for formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanhaerter committed Jul 23, 2024
1 parent ccedf82 commit 85d1ced
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 12 deletions.
5 changes: 3 additions & 2 deletions Kernel/Modules/CustomerElasticsearchQuickResult.pm
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,9 @@ sub Run {
);

my $Age = $LayoutObject->CustomerAge(
Age => $TicketParam->{Age},
Space => ' ',
Age => $TicketParam->{Age},
Space => ' ',
CreatedAt => $TicketParam->{Created},
);

$LayoutObject->Block(
Expand Down
5 changes: 3 additions & 2 deletions Kernel/Modules/CustomerTicketOverview.pm
Original file line number Diff line number Diff line change
Expand Up @@ -703,8 +703,9 @@ sub ShowTicketStatus {

# Age design.
$Ticket{CustomerAge} = $LayoutObject->CustomerAge(
Age => $Ticket{Age},
Space => ' '
Age => $Ticket{Age},
Space => ' ',
CreatedAt => $Ticket{Created},
) || 0;

# return ticket information if there is no article
Expand Down
10 changes: 6 additions & 4 deletions Kernel/Modules/CustomerTicketSearch.pm
Original file line number Diff line number Diff line change
Expand Up @@ -628,8 +628,9 @@ sub Run {
}

$Data{Age} = $LayoutObject->CustomerAge(
Age => $Data{Age},
Space => ' '
Age => $Data{Age},
Space => ' ',
CreatedAt => $Data{Created},
);

# get whole article (if configured!)
Expand Down Expand Up @@ -1244,8 +1245,9 @@ sub Run {
Subject => $Data{Subject} || '',
);
$Data{CustomerAge} = $LayoutObject->CustomerAge(
Age => $Data{Age},
Space => ' ',
Age => $Data{Age},
Space => ' ',
CreatedAt => $Data{Created},
);

# customer info string
Expand Down
5 changes: 3 additions & 2 deletions Kernel/Modules/CustomerTicketZoom.pm
Original file line number Diff line number Diff line change
Expand Up @@ -2289,8 +2289,9 @@ sub _Mask {

# do some html quoting
$Article{Age} = $LayoutObject->CustomerAge(
Age => $Delta->{AbsoluteSeconds},
Space => ' ',
Age => $Delta->{AbsoluteSeconds},
Space => ' ',
CreatedAt => $Ticket{Created},
);

$Article{Subject} = $TicketObject->TicketSubjectClean(
Expand Down
5 changes: 3 additions & 2 deletions Kernel/Output/HTML/TicketOverview/CustomerList.pm
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,9 @@ sub Run {

# Age design.
$Ticket{CustomerAge} = $LayoutObject->CustomerAge(
Age => $Ticket{Age},
Space => ' '
Age => $Ticket{Age},
Space => ' ',
CreatedAt => $Ticket{Created},
) || 0;

# return ticket information if there is no article
Expand Down

0 comments on commit 85d1ced

Please sign in to comment.