Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Preserve data types for default values
when they are created in the attribute dialog
Fixes #46158
  • Loading branch information
m-kuhn authored and github-actions[bot] committed Nov 24, 2021
1 parent 448dcf3 commit a3d806f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/qgsattributeform.cpp
Expand Up @@ -551,7 +551,7 @@ void QgsAttributeForm::updateValuesDependenciesDefaultValues( const int originId
continue;

QgsExpressionContext context = createExpressionContext( updatedFeature );
QString value = mLayer->defaultValue( eww->fieldIdx(), updatedFeature, &context ).toString();
const QVariant value = mLayer->defaultValue( eww->fieldIdx(), updatedFeature, &context );
eww->setValue( value );
}
}
Expand Down

0 comments on commit a3d806f

Please sign in to comment.