Skip to content
Permalink
Browse files

Update src/app/locator/qgsinbuiltlocatorfilters.cpp

Co-Authored-By: 3nids <denis.rouzaud@gmail.com>
  • Loading branch information
m-kuhn and 3nids committed Dec 19, 2018
1 parent c5011df commit 39cb453abe53ea4779b5a3f18ff7f70758eb1635
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/app/locator/qgsinbuiltlocatorfilters.cpp
@@ -363,7 +363,7 @@ void QgsAllLayersFeaturesLocatorFilter::prepare( const QString &string, const Qg
if ( !expression.needsGeometry() )
req.setFlags( QgsFeatureRequest::NoGeometry );
QString enhancedSearch = string;
enhancedSearch.replace( " ", "%" );
enhancedSearch.replace( ' ', '%' );
req.setFilterExpression( QStringLiteral( "%1 ILIKE '%%2%'" )
.arg( layer->displayExpression() )
.arg( enhancedSearch ) );

0 comments on commit 39cb453

Please sign in to comment.
You can’t perform that action at this time.