Ticket #299 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

Collection controls append data when setting wire value

Reported by: dd Owned by: mpo
Priority: major Milestone: 0.4
Component: modules/kauri-forms Version: trunk
Keywords: collection control append Cc:

Description

On collection controls, when setwirevalue is called more than once, the new data will not replace the old, but will instead be appended after the old. If for instance a collection had 3 children, and a setwirevalue is called with a jsonString with 2 children, the collection will now have 5 children instead of the expected 2.

This was also tested with kauri revision 1417, which does not contain this bug.

Easy way to see this : in the kauri samples, modify the file
collection-control.html.xml in the forms sample. Just double line
form1.setWireValue(data); (line 42)

Change History

comment:1 Changed 3 years ago by freya

should be fixed in r1482 , please verify

comment:2 Changed 3 years ago by mpo

  • Status changed from new to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.