Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
qgib opened this issue Feb 11, 2015 · 2 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Processing Relating to QGIS Processing framework or individual Processing algorithms

Comments

@qgib
Copy link
Contributor

qgib commented Feb 11, 2015

Author Name: Filipe Dias (@fsdias)
Original Redmine Issue: 12182
Affected QGIS version: master
Redmine category:processing/qgis
Assignee: Victor Olaya


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


@qgib
Copy link
Contributor Author

qgib commented Feb 11, 2015

Author Name: Arnaud Morvan (@arnaud-morvan)


QgsExpressionWidget editor is not closed automatically like combo and line edit on run clicked.
Workaround by emmiting commitData on QgsExpressionWidget.fieldChanged signal.
Pull request: #1897

@qgib
Copy link
Contributor Author

qgib commented Feb 11, 2015

Author Name: Arnaud Morvan (@arnaud-morvan)


Fixed in changeset "3c938275ebbb5cde21c3a19f3bc804721c63f1ff".


  • status_id was changed from Open to Closed

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Processing Relating to QGIS Processing framework or individual Processing algorithms labels May 25, 2019
@qgib qgib closed this as completed May 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Processing Relating to QGIS Processing framework or individual Processing algorithms
Projects
None yet
Development

No branches or pull requests

1 participant