Fixed bug where choice-multiple-values raises error if nothing selected

dj111py38
Sara Arenson 2015-12-02 12:25:50 -06:00
parent ded42e8fb3
commit 6e7a314dd3
1 changed files with 1 additions and 1 deletions

View File

@ -181,7 +181,7 @@ def process_multiple(question, answer):
if notnumbers:
raise AnswerException(ungettext(u"Value must be a number (with no decimal places)", u"All values must be numbers (with no decimal places)", len(multiple)))
if total != 100:
if len(multiple) > 0 and total != 100:
raise AnswerException(ungettext(u"Did you mean 100% for one choice? Please enter 100 or add other choices.", u"Values must add up to 100.", len(multiple)))