Bug report #12182

Processing Refactor fields: error while adding new field that results from the sum of two existing fields

Added by Filipe Dias over 5 years ago. Updated over 5 years ago.

Status:Closed
Priority:Normal
Assignee:Victor Olaya
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

sample.zip (2.27 KB) Filipe Dias, 2015-02-11 02:45 AM

Associated revisions

Revision 3c938275
Added by Arnaud Morvan over 5 years ago

Fix #12182 - In FieldsMapper, emit commitData on expression editor change

History

#1 Updated by Arnaud Morvan over 5 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 over 5 years ago

  • Status changed from Open to Closed

Also available in: Atom PDF