Skip to content

Commit

Permalink
Update src/app/locator/qgsinbuiltlocatorfilters.cpp
Browse files Browse the repository at this point in the history
Co-Authored-By: 3nids <denis.rouzaud@gmail.com>
  • Loading branch information
m-kuhn and 3nids committed Dec 19, 2018
1 parent c5011df commit 39cb453
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/locator/qgsinbuiltlocatorfilters.cpp
Expand Up @@ -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 ) );
Expand Down

0 comments on commit 39cb453

Please sign in to comment.