g3w-suite / g3w-client-plugin-editing

https://g3w-suite.readthedocs.io/en/latest/g3wsuite_editing.html
0 stars 3 forks source link

Split features has the same value on fields that has "geometry" default_expression expression of split feature #16

Closed volterra79 closed 1 year ago

volterra79 commented 1 year ago

Try to split a feature that has a input field with "geometry" default_expression as below (expression: $area):

{
    "name": "surface",
    "type": "float",
    "label": "Surface",
    "editable": false,
    "validate": {},
    "pk": false,
    "default": "",
    "input": {
        "type": "float",
        "options": {
            "default_expression": {
                "expression": "$area",
                "referenced_columns": [],
                "referenced_functions": [
                    "$area"
                ],
                "apply_on_update": true
            }
        }
    }
}

Screenshot from 2023-03-06 10-10-41

Splitted features have the same value on surface of original feature