Bug report #20201

Forms in search mode: relation reference widgets show "equal to" be default instead of "Exclude field"

Added by Andreas Neumann over 5 years ago. Updated over 5 years ago.

Assignee:Denis Rouzaud
Affected QGIS version:3.3(master) Regression?:No
Operating System:any Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:28022


When opening an attribute table and is switching to "Search mode" (Ctrl-F), all widget values should be excluded from the search by default.

However, all relation reference widgets, default to "equal to" be default, when entering a new search. This should be changed to "Exclude field" by default.

Otherwise the search may search for NULL values in the relation reference widget by default or the first entry (if there are no NULL values), resulting in a lot less (or no) results.

qgis_search-mode_equal-to.png - This form in search mode shows that all relation reference widgets default to "Equal to" instead of "Exclude field" (139 KB) Andreas Neumann, 2018-10-24 09:20 AM

Associated revisions

Revision 95142cc1
Added by Denis Rouzaud over 5 years ago

use Exclude field by default for relation search widget wrapper

fix #20201


#1 Updated by Denis Rouzaud over 5 years ago

  • Assignee set to Denis Rouzaud

#2 Updated by Denis Rouzaud over 5 years ago

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

Also available in: Atom PDF