Bug report #15931
Default value is not saved
Status: | Closed | ||
---|---|---|---|
Priority: | High | ||
Assignee: | - | ||
Category: | Edit widget | ||
Affected QGIS version: | master | Regression?: | No |
Operating System: | Windows | Easy fix?: | No |
Pull Request or Patch supplied: | No | Resolution: | fixed/implemented |
Crashes QGIS or corrupts data: | No | Copied to github as #: | 23848 |
Description
Edit Widget Properties > Defaults: Default value
The option is not saved when you save the style to a database ( Save in database )
Save style to file works ok.
I'm using a MSSQL 2008 and a MSSQL 2016 databases
QGIS 2.18.1
Associated revisions
Save readOnly state and default values to style
They should be handled equal to the edit form config.
Fix #15931
Save readOnly state, constraints and default values to style
They should be handled equal to the edit form config.
Fix #15931
History
#1 Updated by Andre Jesus almost 8 years ago
Save style to file works ok.
Correcting myself, saving styles to file doesn't keep the Default Values also.
It only keeps the values in the session you are using, if you close the application and open again the setting is cleaned.
It happens to all: Ints, Strings, Nulls, Expressions and Variables.
#2 Updated by Andrew McAninch almost 8 years ago
I can confirm that default values are not copied(with copy/paste style) or saved in .qml files with shapefile and spatialite layers in 2.18.2 as well.
#3 Updated by Andre Jesus almost 8 years ago
Confirmed the issue persists in version 2.18.2
The value for "Default value" is saved nowhere: clipboard, .qml, .sld, database or .qmldb
#4 Updated by Anonymous almost 8 years ago
- Status changed from Open to Closed
Fixed in changeset 72cffa68b9fd996620d076e1df5fbbdad92e4ecd.
#5 Updated by Andre Jesus over 7 years ago
Anonymous wrote:
Fixed in changeset 72cffa68b9fd996620d076e1df5fbbdad92e4ecd.
Working perfectly, thank you!
#6 Updated by Giovanni Manghi over 7 years ago
- Resolution set to fixed/implemented