Skip to content

Commit

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

0 comments on commit 1b953df

Please sign in to comment.