Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
respect searchable flag in active layer locator filter
  • Loading branch information
3nids committed Sep 11, 2020
1 parent 5dcca0e commit 0721910
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/app/locator/qgsinbuiltlocatorfilters.cpp
Expand Up @@ -285,6 +285,9 @@ QStringList QgsActiveLayerFeaturesLocatorFilter::prepare( const QString &string,
QgsAttributeList subsetOfAttributes;
for ( const QgsField &field : fields )
{
if ( !field.configurationFlags().testFlag( QgsField::ConfigurationFlag::Searchable ) )
continue;

if ( !_fieldRestriction.isEmpty() && !field.name().startsWith( _fieldRestriction ) )
continue;

Expand Down

0 comments on commit 0721910

Please sign in to comment.