mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-17 00:04:02 -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:
|
if self.param.multiple:
|
||||||
return [self.widget.options[i] for i in self.widget.selectedoptions]
|
return [self.widget.options[i] for i in self.widget.selectedoptions]
|
||||||
else:
|
else:
|
||||||
f = self.widget.field()
|
f = self.widget.currentField()
|
||||||
if self.param.optional and not f:
|
if self.param.optional and not f:
|
||||||
return None
|
return None
|
||||||
return f
|
return f
|
||||||
|
Loading…
x
Reference in New Issue
Block a user