Skip to content
Permalink
Browse files

Fix constraint expression and description are flipped

Fixes #22016
  • Loading branch information
nyalldawson committed May 8, 2019
1 parent ed49b57 commit 1b953df6a05fa4848f872b7c648344c42d435285
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/app/qgsattributesformproperties.cpp
@@ -310,7 +310,7 @@ void QgsAttributesFormProperties::storeAttributeTypeDialog()
constraints.setConstraint( QgsFieldConstraints::ConstraintExpression );
}

constraints.setConstraintExpression( mAttributeTypeDialog->constraintExpressionDescription(), mAttributeTypeDialog->constraintExpression() );
constraints.setConstraintExpression( mAttributeTypeDialog->constraintExpression(), mAttributeTypeDialog->constraintExpressionDescription() );

constraints.setConstraintStrength( QgsFieldConstraints::ConstraintNotNull, mAttributeTypeDialog->notNullEnforced() ?
QgsFieldConstraints::ConstraintStrengthHard : QgsFieldConstraints::ConstraintStrengthSoft );

0 comments on commit 1b953df

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