# HG changeset patch # User Goffi # Date 1391535166 -3600 # Node ID b11df74e49d2b582772b0e575fd422a1d103d710 # Parent 743b757777d37362b2f9a15d508db4d96e093e7b core (XMLUI): fixed labels management for lists in _dataFormField2XMLUIData diff -r 743b757777d3 -r b11df74e49d2 src/tools/xml_tools.py --- a/src/tools/xml_tools.py Tue Feb 04 18:32:39 2014 +0100 +++ b/src/tools/xml_tools.py Tue Feb 04 18:32:46 2014 +0100 @@ -53,7 +53,7 @@ elif field.fieldType == 'list-single': widget_type = "list" del widget_args[0] - widget_kwargs["options"] = [option.value for option in field.options] + widget_kwargs["options"] = [(option.value, option.label or option.value) for option in field.options] else: error(u"FIXME FIXME FIXME: Type [%s] is not managed yet by SàT" % field.fieldType) widget_type = "string"