Boolean columns trigger Python errors in Refactor Fields processing algorithm #25067
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
Author Name: Andreas Neumann (@andreasneumann)
Original Redmine Issue: 17168
Affected QGIS version: master
Redmine category:processing/qgis
Assignee: Matthias Kuhn
When using the "Refactor Fields" processing algorithm and the attribute data contains columns of type boolean, one gets Python errors:
File /usr/local/share/qgis/python/plugins/processing/algs/qgis/ui/FieldsMappingPanel.py" line, in data
return self.fieldTypes[value]
KeyError: 1
Apparently,
(QVariant.Bool, "Boolean"),
has to be added to the fieldType OrderedDict.
The text was updated successfully, but these errors were encountered: