Bug report #16676

Invalid fields error when using “Use completer” in Layer properties Edit widget:Value Relation

Added by Pawel Baziuk almost 7 years ago. Updated over 6 years ago.

Status:Closed
Priority:Normal
Assignee:-
Category:Edit widget
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

Description

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.

invalid fields by use completer.PNG (16.4 KB) Pawel Baziuk, 2017-06-07 11:20 AM

use completer in layer field.PNG (36.8 KB) Pawel Baziuk, 2017-06-07 11:20 AM

Associated revisions

Revision 51ec70ab
Added by Frank Dekervel over 6 years ago

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.

Revision 920d760e
Added by Frank Dekervel over 6 years ago

Fix missing signal/slot connection resulting in non-woring autocompleter for value relation fields (fixes #16676). (#5821)

Backported from d7b08c78faeda9b35882f89913990a253d3b1ab8

History

#1 Updated by Frank Dekervel over 6 years ago

Pull request https://github.com/qgis/QGIS/pull/5740 fixes this bug.

#2 Updated by Giovanni Manghi over 6 years ago

  • Pull Request or Patch supplied changed from No to Yes

#3 Updated by Anonymous over 6 years ago

  • % Done changed from 0 to 100
  • Status changed from Open to Closed

#4 Updated by Giovanni Manghi over 6 years ago

  • Resolution set to fixed/implemented

Also available in: Atom PDF