Skip to content
Permalink
Browse files

show field alias when presenting constraint msg

Before, when a field didn't passed the defined constraints
it showed a message in the form of "field name: Constraint defined message".

Now, if if a field alias is defined, the message is in the form of
"field alias: Constraint defined message"

See #15455
  • Loading branch information
tudorbarascu authored and m-kuhn committed Jan 11, 2017
1 parent 6214d4d commit dbefbfeff0ab6795c956030e450914b299024ba3
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/gui/qgsattributeform.cpp
@@ -818,7 +818,7 @@ bool QgsAttributeForm::currentFormValidConstraints( QStringList &invalidFields,
{
if ( ! eww->isValidConstraint() )
{
invalidFields.append( eww->field().name() );
invalidFields.append( eww->field().displayName() );

descriptions.append( eww->constraintFailureReason() );

0 comments on commit dbefbfe

Please sign in to comment.
You can’t perform that action at this time.