Bug report #10360
Need to save PostGis new features before filling their attributes through Identify Tool
|Affected QGIS version:||master||Regression?:||No|
|Operating System:||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||18779|
When digitising new features in a PostGIS table, you can add its attributes before saving into the database (for the first time). This works nicely when you use the tool "Adding features". But when you copy/paste the features from another layer, whatever changes you manually do, they're reset when you click again on the feature with Identify Tool or save your modifications in your database. You first need to save your features into the PostGIS table and then you can use the Identify Tool to modify its attributes.
At the same time, in the attribute table dialog, you can manually change the attributes of new features before saving the first time, these modifications are kept.
#1 Updated by Giovanni Manghi over 6 years ago
- Status changed from Open to Feedback
can you please explain the issue with a list of steps (describing what kind of layer are you copying from, if it has the same identical table structure as your postgis vector and possibly also attaching sample data)? thanks.
#2 Updated by Giovanni Manghi over 6 years ago
- OS version deleted (
- Operating System deleted (
- Priority changed from High to Severe/Regression
- Status changed from Feedback to Open
I made to replicate the issue, and it is actually a regression. Steps to replicate (tested with PostGIS, may apply to other formats):
- add 2 postgis layers (of the same type), with different table of attributes
- copy a feature from one layer (A) and paste into the other (B) (after toggling editing of course)
- the geometry is pasted as expected
- identify the newly pasted geometry: if "auto open form" is checked the form to enter attributes will open
- the form will show the attributes of layer B to be filled (and are empty as the two vectors have different table structures)
- the user then fill the attributes and clicks "ok".
- if identifying again the newly entered attributes are vanished, this does not happen on qgis 2.2