Bug report #12182
Processing Refactor fields: error while adding new field that results from the sum of two existing fields
Status: | Closed | ||
---|---|---|---|
Priority: | Normal | ||
Assignee: | |||
Category: | Processing/QGIS | ||
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 #: | 20372 |
Description
Consider the attached shapefile:
- Run refactor fields
- Add a new field and name it ("Sum" for example)
- Open the expression dialog and add: "field1" + "field2"
- Run and this error appears:
Algorithm Refactor fields starting...
Parser error in expression "": syntax error, unexpected $end
Associated revisions
Fix #12182 - In FieldsMapper, emit commitData on expression editor change
History
#1
Updated by Arnaud Morvan about 10 years ago
QgsExpressionWidget editor is not closed automatically like combo and line edit on run clicked.
Workaround by emmiting commitData on QgsExpressionWidget.fieldChanged signal.
Pull request: https://github.com/qgis/QGIS/pull/1897
#2
Updated by Arnaud Morvan about 10 years ago
- Status changed from Open to Closed
Fixed in changeset 3c938275ebbb5cde21c3a19f3bc804721c63f1ff.