When a user adds a write-in option to a ranking poll, the "write_in_weight" field is not updated. This results in the write-in vote always being ranked first in the user's selection of options.
Furthermore, when the user enters text in the write-in field without adding it to the table, and also adds at least one other vote to the table, the write-in and the selected option both have an identical rank of 1.
The attached patch fixes both related issues, by properly setting the write-in's weight field, and by ensuring each vote has a unique rank.
Comments
Comment #1
tripper54 commentedComment #3
tripper54 commentedThanks, committed!