Skip to content
Permalink
Browse files

[processing] Add some missing sources to expression contexts

  • Loading branch information
nyalldawson committed Feb 14, 2018
1 parent 8154a85 commit e0cf578096d481cab78599e34ee50a484b30f832
@@ -170,7 +170,7 @@ def prepareAlgorithm(self, parameters, context, feedback):
return True

def processAlgorithm(self, parameters, context, feedback):
expr_context = self.createExpressionContext(parameters, context)
expr_context = self.createExpressionContext(parameters, context, self.source)
self.group_by_expr.prepare(expr_context)

# Group features in memory layers
@@ -115,7 +115,7 @@ def processAlgorithm(self, parameters, context, feedback):
if expression.hasParserError():
raise QgsProcessingException(expression.parserErrorString())

expressionContext = self.createExpressionContext(parameters, context)
expressionContext = self.createExpressionContext(parameters, context, source)
if not expression.prepare(expressionContext):
raise QgsProcessingException(
self.tr('Evaluation error: {0}').format(expression.evalErrorString()))

0 comments on commit e0cf578

Please sign in to comment.
You can’t perform that action at this time.