avoid error because of missing description field
This commit is contained in:
parent
67fe55056f
commit
0936181bf6
1 changed files with 1 additions and 1 deletions
|
@ -254,7 +254,7 @@ class SurveyView(ConceptView):
|
|||
for opt in self.answerOptions:
|
||||
value = str(opt['value'])
|
||||
result.append(dict(value=value, checked=(setting == value),
|
||||
title=opt['description']))
|
||||
title=opt.get('description') or u''))
|
||||
return result
|
||||
|
||||
def getTextValue(self, question):
|
||||
|
|
Loading…
Add table
Reference in a new issue