Remove sorting poll option weight

Fixes a bug where entered votes did not match to the order of poll options
fixes #5125
This commit is contained in:
Sean Engelhardt 2019-11-11 12:36:54 +01:00
parent d248f5fbc1
commit 3530b625d9
1 changed files with 0 additions and 2 deletions

View File

@ -219,8 +219,6 @@ export class AssignmentRepositoryService extends BaseIsAgendaItemAndListOfSpeake
* @param originalPoll the original poll
*/
public async updateVotes(poll: Partial<AssignmentPoll>, originalPoll: ViewAssignmentPoll): Promise<void> {
poll.options.sort((a, b) => a.weight - b.weight);
const votes = poll.options.map(option => {
const voteObject = {};
for (const vote of option.votes) {