[processing] Fix error with field widget wrapper

This commit is contained in:
Nyall Dawson 2016-11-17 12:48:20 +10:00
parent e624518e00
commit fb8b931a8e

View File

@ -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