Bug report #18468

[Edit widget]Show the red cross when one of the constraint is enforced

Added by Harrissou Santanna over 6 years ago.

Status:Open
Priority:Normal
Assignee:-
Category:Forms
Affected QGIS version:3.1(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 #:26356

Description

Not respecting the constraint on a field shows:
  • either a yellow cross (changes can still be applied) because unenforced constraint
  • or a red cross (changes are forbidden - OK button disabled) because enforced constraint (even though #18455).

When more than one constraints are applied on a field, with one being enforced, if the enforced one is not respected, then QGIS disables the OK button but displays the yellow cross. It should instead show the red one (more coherent with the issue).

Also available in: Atom PDF