Skip to content
Browse files
[processing] correctly set default value for string parameters when n…
…o value is provided
  • Loading branch information
volaya committed Oct 18, 2016
1 parent 194004b commit d7bd5dc50705eec3f37ef82fc819b5bc47cce0f0
Showing 1 changed file with 2 additions and 2 deletions.
@@ -740,7 +740,7 @@ class ParameterString(Parameter):
NEWLINE = '\n'

def __init__(self, name='', description='', default=None, multiline=False,
def __init__(self, name='', description='', default='', multiline=False,
optional=False, evaluateExpressions=False):
Parameter.__init__(self, name, description, default, optional)
self.multiline = parseBool(multiline)
@@ -750,7 +750,7 @@ def setValue(self, obj):
if not bool(obj):
if not self.optional:
return False
self.value = None
self.value = self.default
return True

self.value = unicode(obj).replace(

0 comments on commit d7bd5dc

Please sign in to comment.