mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-16 12:12:06 +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) {
|
if (field.getType() != FormField.Type.bool) {
|
||||||
throw new IllegalArgumentException("This field is not of type boolean.");
|
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