Skip to content

Commit

Permalink
Issue #3296: Removed obsolete checks for CustomerID.
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanhaerter authored and svenoe committed Apr 8, 2024
1 parent 2088a51 commit f5fce40
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions Kernel/Modules/CustomerTicketProcess.pm
Original file line number Diff line number Diff line change
Expand Up @@ -815,15 +815,6 @@ sub _GetParam {
$ValuesGotten{Article} = 1 if ( $GetParam{Subject} && $GetParam{Body} );
}

if ( $CurrentField eq 'CustomerID' ) {
$GetParam{Customer} = $ParamObject->GetParam(
Param => 'SelectedCustomerUser',
) || '';
$GetParam{CustomerUserID} = $ParamObject->GetParam(
Param => 'SelectedCustomerUser',
) || '';
}

# Non DynamicFields
# 1. try to get the required param
my $Value = $ParamObject->GetParam( Param => $Self->{NameToID}{$CurrentField} );
Expand All @@ -848,9 +839,8 @@ sub _GetParam {
}

# if no Submitted nore Ticket Param get ActivityDialog Config's Param
if ( $CurrentField ne 'CustomerID' ) {
$Value = $ActivityDialog->{Fields}{$CurrentField}{DefaultValue};
}
$Value = $ActivityDialog->{Fields}{$CurrentField}{DefaultValue};

if ($Value) {
$ValuesGotten{ $Self->{NameToID}{$CurrentField} } = 1;
$GetParam{$CurrentField} = $Value;
Expand Down

0 comments on commit f5fce40

Please sign in to comment.