mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-13 00:03:09 -04:00
[processing] Fix error with field widget wrapper
This commit is contained in:
parent
e624518e00
commit
fb8b931a8e
@ -1093,7 +1093,7 @@ class TableFieldWidgetWrapper(WidgetWrapper):
|
||||
if self.param.multiple:
|
||||
return [self.widget.options[i] for i in self.widget.selectedoptions]
|
||||
else:
|
||||
f = self.widget.field()
|
||||
f = self.widget.currentField()
|
||||
if self.param.optional and not f:
|
||||
return None
|
||||
return f
|
||||
|
Loading…
x
Reference in New Issue
Block a user