Bug report #22016

Constraint on Text Edit Widget mixes up expression and expression description, causing constraint not to work.

Added by Jens Astrom almost 5 years ago. Updated almost 5 years ago.

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

Description

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.


Related issues

Duplicates QGIS Application - Bug report #21908: constraints: "expression" and "expression description" ar... Open 2019-04-23

Associated revisions

Revision 1b953df6
Added by Nyall Dawson almost 5 years ago

Fix constraint expression and description are flipped

Fixes #22016

Revision cdbd9651
Added by Nyall Dawson almost 5 years ago

Fix constraint expression and description are flipped

Fixes #22016

Revision 15f55d56
Added by Nyall Dawson almost 5 years ago

Fix constraint expression and description are flipped

Fixes #22016

Revision cea65e25
Added by Nyall Dawson almost 5 years ago

Fix constraint expression and description are flipped

Fixes #22016

Revision 883d235f
Added by Nyall Dawson almost 5 years ago

Fix constraint expression and description are flipped

Fixes #22016

History

#1 Updated by Andy Harfoot almost 5 years ago

Also reproduced in 3.4.7, Win10 using the Unique Values widget

#2 Updated by Giovanni Manghi almost 5 years ago

  • Duplicates Bug report #21908: constraints: "expression" and "expression description" are swapped upon reopening the vector properties added

#3 Updated by Giovanni Manghi almost 5 years ago

  • Resolution set to duplicate
  • Easy fix? changed from Yes to No
  • Operating System deleted (Windows 10, Ubuntu 18.10)
  • Status changed from Open to Closed

Also available in: Atom PDF