Skip to content

Commit

Permalink
Revert "Issue #3163: Restrict passing ticket params to GetParam."
Browse files Browse the repository at this point in the history
This reverts commit a20edb7.
  • Loading branch information
svenoe committed Mar 12, 2024
1 parent 6a782c4 commit 1bc3510
Showing 1 changed file with 9 additions and 18 deletions.
27 changes: 9 additions & 18 deletions Kernel/Modules/AgentTicketActionCommon.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1889,24 +1889,15 @@ sub Run {
}

# use ticket values
if ( $Config->{Queue} ) {
$GetParam{QueueID} = $Ticket{QueueID} // '';
$GetParam{Dest} = $Ticket{QueueID} // '';
}
if ( $Config->{Service} ) {
$GetParam{SLAID} = $Ticket{SLAID} // '';
$GetParam{ServiceID} = $Ticket{ServiceID} // '';
}
if ( $Config->{TicketType} ) {
$GetParam{TypeID} = $Ticket{TypeID} // '';
}
if ( $Config->{State} ) {
$GetParam{NextStateID} = $Ticket{StateID} // '';
}
if ( $Config->{Priority} || $Self->{Action} eq 'AgentTicketPriority' ) {
$GetParam{PriorityID} = $Ticket{PriorityID} // '';
}

$GetParam{QueueID} = $Ticket{QueueID} // '';
$GetParam{Dest} = $Ticket{QueueID} // '';
$GetParam{NewResponsibleID} = $Ticket{ResponsibleID} // '';
$GetParam{SLAID} = $Ticket{SLAID} // '';
$GetParam{ServiceID} = $Ticket{ServiceID} // '';
$GetParam{TypeID} = $Ticket{TypeID} // '';
$GetParam{NextStateID} = $Ticket{StateID} // '';
$GetParam{PriorityID} = $Ticket{PriorityID} // '';
$GetParam{NewUserID} = $Ticket{OwnerID} // '';
my $CustomerUser = $Ticket{CustomerUserID} // '';

# Get values for Ticket fields and use default value for Article fields, if given (all screens based on
Expand Down

0 comments on commit 1bc3510

Please sign in to comment.