Skip to content

Commit

Permalink
Issue #3163: Restricted passing ticket params to GetParam.
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanhaerter committed Mar 12, 2024
1 parent 882bf62 commit 42088ee
Showing 1 changed file with 17 additions and 9 deletions.
26 changes: 17 additions & 9 deletions Kernel/Modules/AgentTicketActionCommon.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1980,15 +1980,23 @@ sub Run {
}

# use ticket values
$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} // '';
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} ) {
$GetParam{PriorityID} = $Ticket{PriorityID} // '';
}
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 42088ee

Please sign in to comment.