mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-18 00:03:05 -04:00
Correct parameter evaluation for multiple field types
This commit is contained in:
parent
dbf21d1969
commit
d49114cfc1
@ -213,6 +213,9 @@ class ScriptAlgorithm(QgsProcessingAlgorithm):
|
||||
elif param.type() == "vector":
|
||||
method = self.parameterAsVectorLayer
|
||||
elif param.type() == "field":
|
||||
if param.allowMultiple():
|
||||
method = self.parameterAsFields
|
||||
else:
|
||||
method = self.parameterAsString
|
||||
elif param.type() == "source":
|
||||
method = self.parameterAsSource
|
||||
|
Loading…
x
Reference in New Issue
Block a user