A platform for community discussion. Free, open, simple.
FIX: ensure poll options keep their order
Régis Hanol606faa2ee5b1
diff --git a/plugins/poll/app/models/poll_option.rb b/plugins/poll/app/models/poll_option.rbindex f245d612447..96a8d9372b1 100644--- a/plugins/poll/app/models/poll_option.rb+++ b/plugins/poll/app/models/poll_option.rb@@ -2,7 +2,7 @@ class PollOption < ActiveRecord::Basebelongs_to :pollhas_many :poll_votes, dependent: :delete_all- default_scope { order(created_at: :asc) }+ default_scope { order(:id) }end# == Schema Information