Skip to content
Permalink
Browse files

Correct parameter evaluation for multiple field types

  • Loading branch information
nyalldawson committed Jun 26, 2017
1 parent dbf21d1 commit d49114cfc145ad345a6cadc6071fe2764dc58ac2
Showing with 4 additions and 1 deletion.
  1. +4 −1 python/plugins/processing/script/ScriptAlgorithm.py
@@ -213,7 +213,10 @@ def processAlgorithm(self, parameters, context, feedback):
elif param.type() == "vector":
method = self.parameterAsVectorLayer
elif param.type() == "field":
method = self.parameterAsString
if param.allowMultiple():
method = self.parameterAsFields
else:
method = self.parameterAsString
elif param.type() == "source":
method = self.parameterAsSource

0 comments on commit d49114c

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