Skip to content
Permalink
Browse files

respect searchable flag in active layer locator filter

  • Loading branch information
3nids committed Sep 11, 2020
1 parent 5dcca0e commit 07219108eefe2aa89b25aac1118629f7b35d02a7
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/app/locator/qgsinbuiltlocatorfilters.cpp
@@ -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;

0 comments on commit 0721910

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