Skip to content

Commit

Permalink
Issue #3707: Fixed lower handling in DF Reference SearchSQLGet.
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanhaerter committed Aug 14, 2024
1 parent 7d0a197 commit 898b141
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions Kernel/System/DynamicField/Driver/BaseReference.pm
Original file line number Diff line number Diff line change
Expand Up @@ -159,13 +159,9 @@ sub SearchSQLGet {
}

my $DBObject = $Kernel::OM->Get('Kernel::System::DB');
my $Lower = '';
if ( $DBObject->GetDatabaseFunction('CaseSensitive') ) {
$Lower = 'LOWER';
}

my $SQL = " $Lower($Param{TableAlias}.$Self->{TableAttribute}) $Operators{ $Param{Operator} } ";
$SQL .= "$Lower('" . $DBObject->Quote( $Param{SearchTerm} ) . "') ";
my $SQL = " $Param{TableAlias}.$Self->{TableAttribute} $Operators{ $Param{Operator} } ";
$SQL .= "'" . $DBObject->Quote( $Param{SearchTerm} ) . "' ";

return $SQL;
}
Expand Down

0 comments on commit 898b141

Please sign in to comment.