mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-12-24 03:27:59 +01:00
Use true/false instead of 1/0 in boolean type FormFields
This commit is contained in:
parent
793d3c47ad
commit
20014d56b4
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue