Bug report #19130
'Move and Copy' feature of vector editor duplicates 'fid'
|Affected QGIS version:||3.0.3||Regression?:||No|
|Operating System:||WIN 10 1709||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||26960|
'Move and Copy' feature of vector editor duplicates 'fid' prohibiting changes to be saved until all instances are manually modified to a unique FID value.
This occured on a poly-line feature of a geopackage file type.
re-assigning the fid column to '@row_number' did not work... it invalidated all fields in the table.
#2 Updated by Jérôme Guélat over 4 years ago
I was able to reproduce this bug. Here's a step by step procedure:
1. Create a new GeoPackage with a polygon table
2. Digitize a new polygon, toggle the editing off (and save the edits)
3. Toggle editing on and use the tool "Copy and Move Feature" (click on the previous polygon, move it around and click a second time to create the new one)
4. Try to save the changes
The split tool have the same behaviour in QGIS 2.18 but this is fixed in QGIS 3.0. Maybe a similar fix can be applied to the "Copy and Move Feature" tool.