Driving PSI properties: repeating attributes order
Brought to you by:
gsteimer,
tsgopensource
comment posted by siams on 2006-01-18 1:39 PM
When a repeating PSI property/attribute is updated by a
Question in the Wizard, the series of values is not
saved to the object in the proper order.
This is most likely caused by the use of HashSet object
to store the values before they are saved to the
docbase (ChangeRequest.setPsiProperties()). The HashSet
object does not guarantee the order of its elements to
remain constant over time.
Logged In: YES
user_id=1536553
comment posted by gsteimer on 2006-01-26 11:30 AM
changing to low priority -- we will only fix this if a
client asks for it
changed by siams on 2006-01-18 1:46 PM
changed desc from "Wizard driving PSI properties: repeating
attributes not saved in propery order" to "Wizard driving
PSI properties: repeating attributes not saved in proper order"
Logged In: YES
user_id=1568182
Originator: NO
This looks like it was a real quick fix so I went ahead and did it. Changed HashSet -> LinkedHashSet which guarantees iteration order to be the same as the insertion order. See commit 1375.
This fix was not extensively tested, so keep that in mind.