Skip to content
Permalink
Browse files

[processing] Don't sort field names in multi-field input dialog

Field names should always be listed in the order that the layer
defines them
  • Loading branch information
nyalldawson committed Dec 14, 2017
1 parent 9984962 commit bbf00279ad32141d61691f2969492a6908321182
Showing with 3 additions and 3 deletions.
  1. +3 −3 python/plugins/processing/gui/wrappers.py
@@ -1362,11 +1362,11 @@ def getFields(self):
elif self.param.dataType() == QgsProcessingParameterField.DateTime:
fieldTypes = [QVariant.Date, QVariant.Time, QVariant.DateTime]

fieldNames = set()
fieldNames = []
for field in self._layer.fields():
if not fieldTypes or field.type() in fieldTypes:
fieldNames.add(str(field.name()))
return sorted(list(fieldNames), key=cmp_to_key(locale.strcoll))
fieldNames.append(str(field.name()))
return fieldNames

def setValue(self, value):
if self.dialogType in (DIALOG_STANDARD, DIALOG_BATCH):

0 comments on commit bbf0027

Please sign in to comment.
You can’t perform that action at this time.