-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Preserve attribute type in dialog update #46172
Preserve attribute type in dialog update #46172
Conversation
9b03249
to
ef56bf1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch.
@m-kuhn , a test covering that would be good. |
The simpler the patch, the likelier this request 😆 |
It is quite possible that it was unintentional. |
when they are created in the attribute dialog Fixes qgis#46158
ef56bf1
to
fecf05d
Compare
eww->setValue( value ); | ||
mCurrentFormFeature.setAttribute( eww->field().name(), value ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For reference, this is another unreported issue, live default values were not stored into the current form feature and hence taken into account by any related functionality.
fecf05d
to
c1b8722
Compare
If an attribute is set to "apply on update" and has a complex type (anything that's not losslessly convertible to string and back), QGIS will up to now replace it with an empty value in the attribute form.
This patch simply removes the string conversion.
Fixes #46158