Bug report #8311
Layer display choice should default to "Field", not "HTML"
|Affected QGIS version:||master||Regression?:||No|
|Operating System:||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||17104|
Currently the "Display" choice for vector layers defaults to "HTML" (which is by default blank). This causes issues when using the identify tool on multiple objects, since the tree parent for each identified feature is blank (see attached screenshot).
I'd suggest defaulting to the "Field" choice for "Display", since this gives a value for the parent for each feature (see second screenshot).
Make sure updateFields() is called before setDisplayField for new vector layers (fix #8311)