Skip to content

Commit ff442c4

Browse files
tudorbarascum-kuhn
authored andcommitted
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
1 parent c3468fc commit ff442c4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/gui/qgsattributeform.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -833,7 +833,7 @@ bool QgsAttributeForm::currentFormValidConstraints( QStringList &invalidFields,
833833
{
834834
if ( ! eww->isValidConstraint() )
835835
{
836-
invalidFields.append( eww->field().name() );
836+
invalidFields.append( eww->field().displayName() );
837837

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

0 commit comments

Comments
 (0)