diff --git a/python/plugins/processing/script/ScriptAlgorithm.py b/python/plugins/processing/script/ScriptAlgorithm.py index 40b253403a2..63120061d9d 100644 --- a/python/plugins/processing/script/ScriptAlgorithm.py +++ b/python/plugins/processing/script/ScriptAlgorithm.py @@ -213,7 +213,10 @@ class ScriptAlgorithm(QgsProcessingAlgorithm): 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