Bug report #21868

default value + "apply default value on update" does not work when using the "split features" tool

Added by Giovanni Manghi almost 5 years ago.

Status:Open
Priority:Normal
Assignee:-
Category:Vectors
Affected QGIS version:3.6.1 Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:29683

Description

1) add a polygon layer
2) a column proper to receive values for the polygons areas, use the field calculator to compute them
3) to this column set a default to "$area" and check the "apply default value on update" option
4) split a polygon >

the area for one of the newly created polygon is correctly computed and added to the table > ok

the area for the other polygon is not updated/recomputed.

Technically is not data corruption nor a crash, but this leads to wrong results... so this should really be a high priority ticket, I think.

Also available in: Atom PDF