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 2e52573 commit 15f55d5689d902efad6acb63eaf56596d9d4c288
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/app/qgsattributesformproperties.cpp
@@ -321,7 +321,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 15f55d5

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