From f548f0a1dbc9f430c6a9cd0935233a7a100ce947 Mon Sep 17 00:00:00 2001 From: Bertocq Date: Mon, 23 Oct 2017 22:25:36 +0200 Subject: [PATCH] Fix voting_polls variable typo on shift creation --- app/views/admin/poll/shifts/_form.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/admin/poll/shifts/_form.html.erb b/app/views/admin/poll/shifts/_form.html.erb index 230864218..7e2930751 100644 --- a/app/views/admin/poll/shifts/_form.html.erb +++ b/app/views/admin/poll/shifts/_form.html.erb @@ -24,7 +24,7 @@
<%= select 'shift[date]', 'vote_collection_date', - options_for_select(shift_vote_collection_dates(@booth, @vote_collection_polls)), + options_for_select(shift_vote_collection_dates(@booth, @voting_polls)), { prompt: @voting_polls.present? ? t("admin.poll_shifts.new.select_date") : t("admin.poll_shifts.new.no_voting_days"), label: false }, class: 'js-shift-vote-collection-dates' %>