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 c3468fc commit ff442c41f1878ce0a98885822bbf638eba5c465f
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/gui/qgsattributeform.cpp
@@ -833,7 +833,7 @@ bool QgsAttributeForm::currentFormValidConstraints( QStringList &invalidFields,
{
if ( ! eww->isValidConstraint() )
{
invalidFields.append( eww->field().name() );
invalidFields.append( eww->field().displayName() );

QString desc = eww->layer()->editFormConfig()->expressionDescription( eww->fieldIdx() );
descriptions.append( desc );

0 comments on commit ff442c4

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