Skip to content

Commit 883d235

Browse files
nyalldawsonnirvn
authored andcommittedMay 12, 2019
Fix constraint expression and description are flipped
Fixes #22016
1 parent bce856e commit 883d235

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
@@ -310,7 +310,7 @@ void QgsAttributesFormProperties::storeAttributeTypeDialog()
310310
constraints.setConstraint( QgsFieldConstraints::ConstraintExpression );
311311
}
312312

313-
constraints.setConstraintExpression( mAttributeTypeDialog->constraintExpressionDescription(), mAttributeTypeDialog->constraintExpression() );
313+
constraints.setConstraintExpression( mAttributeTypeDialog->constraintExpression(), mAttributeTypeDialog->constraintExpressionDescription() );
314314

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

0 commit comments

Comments
 (0)
Please sign in to comment.