Skip to content
Permalink
Browse files

[processing] Fields mapper code improvement

  • Loading branch information
m-kuhn committed Sep 26, 2017
1 parent b527be0 commit f6479c1f79cf82d95865cf1016df404d9cd021de
Showing with 3 additions and 3 deletions.
  1. +3 −3 python/plugins/processing/algs/qgis/FieldsMapper.py
@@ -66,11 +66,11 @@ def checkValueIsAcceptable(self, value, context=None):
for field_def in value:
if not isinstance(field_def, dict):
return False
if not field_def.get('name', False):
if 'name' not in field_def.keys():
return False
if field_def.get('type', None) is None:
if 'type' not in field_def.keys():
return False
if not field_def.get('expression', False):
if 'expression' not in field_def.keys():
return False
return True

0 comments on commit f6479c1

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