Use true/false instead of 1/0 in boolean type FormFields

This commit is contained in:
Florian Schmaus 2018-02-23 11:50:54 +01:00
parent 793d3c47ad
commit 20014d56b4
1 changed files with 1 additions and 1 deletions

View File

@ -235,7 +235,7 @@ public class Form {
if (field.getType() != FormField.Type.bool) {
throw new IllegalArgumentException("This field is not of type boolean.");
}
setAnswer(field, (value ? "1" : "0"));
setAnswer(field, Boolean.toString(value));
}
/**