Fix passing missing context to expression of select by expression algorithm

This commit is contained in:
signedav 2024-10-31 21:37:28 +01:00 committed by Nyall Dawson
parent b6ab304f91
commit 774c5a913c

View File

@ -87,6 +87,8 @@ class SelectByExpression(QgisAlgorithm):
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]}