Navigation Menu

Skip to content

Commit

Permalink
show field alias when presenting constraint msg
Browse files Browse the repository at this point in the history
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 ff442c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/qgsattributeform.cpp
Expand Up @@ -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 );
Expand Down

0 comments on commit ff442c4

Please sign in to comment.