Skip to content

Commit

Permalink
Issue #3186: Removing now obsolete changes on ticket df driver.
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanhaerter committed Sep 26, 2024
1 parent 0276927 commit 6573c07
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions Kernel/System/DynamicField/Driver/Ticket.pm
Original file line number Diff line number Diff line change
Expand Up @@ -341,12 +341,6 @@ sub SearchObjects {
my $DynamicFieldConfig = $Param{DynamicFieldConfig};

my %SearchParams;
my $ConfigObject = $Kernel::OM->Get('Kernel::Config');
if ( $ConfigObject->Get('Ticket::Type') ) {
if ( IsArrayRefWithData( $DynamicFieldConfig->{Config}->{TicketType} ) ) {
$SearchParams{TypeIDs} = $DynamicFieldConfig->{Config}->{TicketType};
}
}

if ( $Param{ObjectID} ) {
$SearchParams{TicketID} = $Param{ObjectID};
Expand Down Expand Up @@ -521,6 +515,7 @@ sub SearchObjects {
}

# Support restriction by ticket type when the Ticket::Type feature is activated.
my $ConfigObject = $Kernel::OM->Get('Kernel::Config');
if ( $ConfigObject->Get('Ticket::Type') && !$Param{ExternalSource} ) {
if ( IsArrayRefWithData( $DynamicFieldConfig->{Config}{TicketType} ) ) {
if ( $SearchParams{TypeIDs} || $SearchParams{Types} ) {
Expand Down

0 comments on commit 6573c07

Please sign in to comment.