#982 util.dataforms list-multi values go into options

Reporter Zash
Owner Nobody
Created
Updated
Stars ★ (1)  
Tags
  • Priority-Medium
  • Type-Defect
  • Status-Accepted
  1. Zash on

    What steps will reproduce the problem? print(require"util.dataforms".new({{name="test",type="list-multi"}}):form({test={"foo","bar"}})) What is the expected output? <x xmlns="jabber:x:data" type="form"> <field type="list-multi" var="test"> <value>foo</value> <value>bar</value> </field> </x> What do you see instead? <x xmlns="jabber:x:data" type="form"> <field type="list-multi" var="test"> <option> <value>foo</value> </option> <option> <value>bar</value> </option> </field> </x> What version of the product are you using? On what operating system? 8ea0484871e8 0.10

New comment