Skip to content

Commit

Permalink
Issue #1938: If in customer interface, use UserID of initiating user
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanhaerter committed Sep 16, 2022
1 parent d981112 commit 4722195
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Kernel/Output/PDF/Ticket.pm
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,12 @@ sub GeneratePDF {
# Get customer info.
my $CustomerUserObject = $Kernel::OM->Get('Kernel::System::CustomerUser');
my %CustomerData;
if ( $Ticket{CustomerUserID} ) {
if ( $Interface{Customer} ) {
%CustomerData = $CustomerUserObject->CustomerUserDataGet(
User => $Param{UserID},
);
}
elsif ( $Ticket{CustomerUserID} ) {
%CustomerData = $CustomerUserObject->CustomerUserDataGet(
User => $Ticket{CustomerUserID},
);
Expand Down

0 comments on commit 4722195

Please sign in to comment.