Merge pull request #30443 from alexbruy/batch-fix

use correct method name in the batch input selector for vector layers (fix #30410)
This commit is contained in:
Alexander Bruy 2019-06-27 14:52:11 +03:00 committed by GitHub
commit 509ab2985c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1484,7 +1484,7 @@ class VectorLayerWidgetWrapper(WidgetWrapper):
if self.dialogType == DIALOG_STANDARD:
return self.combo.value()
elif self.dialogType == DIALOG_BATCH:
return self.widget.value()
return self.widget.getValue()
else:
def validator(v):
return bool(v) or self.parameterDefinition().flags() & QgsProcessingParameterDefinition.FlagOptional