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 f4e0fa8 commit cea65e250e76da1c2a1472b2dee0553729e7caa3
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/app/qgsattributesformproperties.cpp
@@ -311,7 +311,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 cea65e2

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