# Editing a poll with votes creates inconsistent state

**URL:** <https://meta.discourse.org/t/editing-a-poll-with-votes-creates-inconsistent-state/28239>\
**Category:** Bug\
**Tags:** polls\
**Created:** [2 Maggio 2015, 2:31pm UTC](https://meta.discourse.org/t/editing-a-poll-with-votes-creates-inconsistent-state/28239 "2015-05-02T14:31:09Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)\
**Post date:** [6 Maggio 2015, 4:54pm UTC](https://meta.discourse.org/t/editing-a-poll-with-votes-creates-inconsistent-state/28239/3 "2015-05-06T16:54:03Z")

</div>

Just pushed a fix that properly reset all votes when the number of options changes since there’s no **easy** way of “_merging_” options when they might be added/removed/sorted.

This shouldn’t be too much of a problem since this is only allowed for the first 5 minutes.

[https://github.com/discourse/discourse/commit/033761d2f629f45d8409ce7c5a547ff30ebb3543](https://github.com/discourse/discourse/commit/033761d2f629f45d8409ce7c5a547ff30ebb3543)

---

_[View the full topic](https://meta.discourse.org/t/editing-a-poll-with-votes-creates-inconsistent-state/28239)._
