Bug report #16676
Invalid fields error when using “Use completer” in Layer properties Edit widget:Value Relation
|Affected QGIS version:||2.18.9||Regression?:||No|
|Operating System:||Windows 7||Easy fix?:||No|
|Pull Request or Patch supplied:||Yes||Resolution:||fixed/implemented|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||24575|
I've made a field in a layer without NULL and connected it by relation to a fixed list of values from another layer by using Edit widget:Value Relation. Then I checked "Use completer" option in that widet to use an edit line in this field(you can see it in the picture attached).
When I make a new object in that layer and complete a value by editing it, I always get invalid field error just like I would still have null in that field. I can't put any objects in that layer.
When I uncheck "Use completer" in edit widget, than I have to use a combobox in that field and this way gives no error.
So using field properties: without NULL, Edit widget:Value Relation with Use completer checked - gives error when creating any object in that layer.
Fix missing signal/slot connection resulting in non-woring autocompleter for value relation fields (fixes #16676).
This oneliner introduces the missing signal/slot connection, and fixes the bug.