Skip to content

Commit

Permalink
[processing] Fix missing default value for Select by Expression
Browse files Browse the repository at this point in the history
Fixes #30218
  • Loading branch information
nyalldawson committed Jun 16, 2019
1 parent 853abe0 commit c017fc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/plugins/processing/algs/qgis/SelectByExpression.py
Expand Up @@ -66,7 +66,7 @@ def initAlgorithm(self, config=None):
self.addParameter(QgsProcessingParameterExpression(self.EXPRESSION,
self.tr('Expression'), parentLayerParameterName=self.INPUT))
self.addParameter(QgsProcessingParameterEnum(self.METHOD,
self.tr('Modify current selection by'), self.methods, 0))
self.tr('Modify current selection by'), self.methods, defaultValue=0))

self.addOutput(QgsProcessingOutputVectorLayer(self.OUTPUT, self.tr('Selected (attribute)')))

Expand Down

0 comments on commit c017fc1

Please sign in to comment.