mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
Correct parameter evaluation for multiple field types
This commit is contained in:
parent
dbf21d1969
commit
d49114cfc1
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user