Skip to content

Commit

Permalink
Fix passing missing context to expression of select by expression alg…
Browse files Browse the repository at this point in the history
…orithm
  • Loading branch information
signedav authored and nyalldawson committed Nov 1, 2024
1 parent b6ab304 commit 774c5a9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python/plugins/processing/algs/qgis/SelectByExpression.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ def processAlgorithm(self, parameters, context, feedback):
if qExp.hasParserError():
raise QgsProcessingException(qExp.parserErrorString())

layer.selectByExpression(expression, behavior)
expression_context = self.createExpressionContext(parameters, context)

layer.selectByExpression(expression, behavior, expression_context)

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

0 comments on commit 774c5a9

Please sign in to comment.