Bug report #8255
in edit mode changing primary key discards geometry modifications
|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 #:||17059|
If you modify the geometry of a feature (eg move a point) and then change its primary key (with attribute table), the geometry modifications are lost.
This is especially relevant to split features, where you may need to edit the primary key values in order to make them unique (see #7550).
vector layer: update geometries first before feature id might change (fixes #8255)