Skip to content
Browse files

[processing] fix missing quotes to field name in refactor fields

  • Loading branch information
nirvn committed Jun 5, 2016
1 parent e7b04f2 commit 14342ce65a84c1efa377862eeac085642736ed1b
Showing with 5 additions and 2 deletions.
  1. +5 −2 python/plugins/processing/algs/qgis/ui/
@@ -220,7 +220,7 @@ def newField(self, field=None):
'type': field.type(),
'length': field.length(),
'precision': field.precision(),
'expression': QgsExpression.quotedColumnRef(}

def loadLayerFields(self, layer):
@@ -292,7 +292,10 @@ def setModelData(self, editor, model, index):

elif fieldType == QgsExpression:
(value, isExpression, isValid) = editor.currentField()
model.setData(index, value)
if isExpression is True:
model.setData(index, value)
model.setData(index, QgsExpression.quotedColumnRef(value))

QStyledItemDelegate.setModelData(self, editor, model, index)

0 comments on commit 14342ce

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