Bug report #22016
Constraint on Text Edit Widget mixes up expression and expression description, causing constraint not to work.
|Affected QGIS version:||3.6.2||Regression?:||No|
|Operating System:||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:||duplicate|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||29830|
When specifying a constraint on a text field (text widget) the expression and the expression description trades places. This causes the filter not to work.
Steps to reproduce:
1. New project, new Geopackage vector with a text data column called 'name'.
2. In properties, attribute form; set a constraint with expression length(name) >1, and description 'At least two characters'. Click OK.
3. Look in properties, attribute form. Expression and expression description has now traded places.
Tested on 3.6.2, Build 656500e0c4 on Windows 10, and Build 656500e on Ubuntu. A workaround is to use the expression as expression description as well.