1
0
Fork 0
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:
Florian Schmaus 2014-07-30 21:58:10 +02:00
parent 5ead24e416
commit 0b6069d75f

View file

@ -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();