mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-22 00:06:12 -05:00
Fix passing missing context to expression of select by expression algorithm
This commit is contained in:
parent
b6ab304f91
commit
774c5a913c
@ -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]}
|
||||
|
Loading…
x
Reference in New Issue
Block a user