adds selected option via params for helper methods
This commit is contained in:
@@ -13,7 +13,7 @@ module OfficingHelper
|
||||
officer_assignments.each do |oa|
|
||||
options << ["#{oa.booth_assignment.booth.name}", oa.id]
|
||||
end
|
||||
options_for_select(options)
|
||||
options_for_select(options, params[:oa])
|
||||
end
|
||||
|
||||
def recount_to_compare_with_final_recount(final_recount)
|
||||
|
||||
@@ -25,7 +25,7 @@ module PollsHelper
|
||||
(poll.starts_at.to_date..poll.ends_at.to_date).each do |date|
|
||||
options << [l(date, format: :long), l(date)]
|
||||
end
|
||||
options_for_select(options)
|
||||
options_for_select(options, params[:d])
|
||||
end
|
||||
|
||||
def poll_final_recount_option(poll)
|
||||
|
||||
Reference in New Issue
Block a user