Skip to content

Commit cdbd965

Browse files
committed
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

+1-1
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)