mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-25 21:42:07 +01:00
Fix FormField.Option.toXML() to use correct element
Fixes SMACK-589
This commit is contained in:
parent
5ead24e416
commit
0b6069d75f
1 changed files with 2 additions and 2 deletions
|
@ -313,7 +313,7 @@ public class FormField {
|
|||
*/
|
||||
public static class Option {
|
||||
|
||||
public static final String ELEMNT = "option";
|
||||
public static final String ELEMENT = "option";
|
||||
|
||||
private final String value;
|
||||
private String label;
|
||||
|
@ -352,7 +352,7 @@ public class FormField {
|
|||
|
||||
public XmlStringBuilder toXML() {
|
||||
XmlStringBuilder xml = new XmlStringBuilder();
|
||||
xml.halfOpenElement(ELEMNT);
|
||||
xml.halfOpenElement(ELEMENT);
|
||||
// Add attribute
|
||||
xml.optAttribute("label", getLabel());
|
||||
xml.rightAngelBracket();
|
||||
|
|
Loading…
Reference in a new issue