Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix constraint expression and description are flipped
Fixes #22016
  • Loading branch information
nyalldawson committed May 8, 2019
1 parent f4e0fa8 commit cdbd965
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/qgsattributesformproperties.cpp
Expand Up @@ -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 );
Expand Down

0 comments on commit cdbd965

Please sign in to comment.