Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit cdbd965

Browse files
committedMay 8, 2019
Fix constraint expression and description are flipped
Fixes #22016
1 parent f4e0fa8 commit cdbd965

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/app/qgsattributesformproperties.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ void QgsAttributesFormProperties::storeAttributeTypeDialog()
311311
constraints.setConstraint( QgsFieldConstraints::ConstraintExpression );
312312
}
313313

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

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

0 commit comments

Comments
 (0)
Please sign in to comment.