Skip to content

Commit 774c5a9

Browse files
signedavnyalldawson
authored andcommitted
Fix passing missing context to expression of select by expression algorithm
1 parent b6ab304 commit 774c5a9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

python/plugins/processing/algs/qgis/SelectByExpression.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ def processAlgorithm(self, parameters, context, feedback):
8787
if qExp.hasParserError():
8888
raise QgsProcessingException(qExp.parserErrorString())
8989

90-
layer.selectByExpression(expression, behavior)
90+
expression_context = self.createExpressionContext(parameters, context)
91+
92+
layer.selectByExpression(expression, behavior, expression_context)
9193

9294
return {self.OUTPUT: parameters[self.INPUT]}

0 commit comments

Comments
 (0)