From 397e8406cc368257a9150cc7b573ad1cf0ffad73 Mon Sep 17 00:00:00 2001 From: Adrian Toth Date: Thu, 3 Aug 2017 15:30:56 +0200 Subject: [PATCH] prefix "ViewHelper::" added to 4 constants "TIMER_DAYS,TIMER_HOURS,TIMER_WEEKS,TIMER_MONTHS" --- app/views/report/_schedule_form_timer.html.haml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/views/report/_schedule_form_timer.html.haml b/app/views/report/_schedule_form_timer.html.haml index b1b1b0d894df..1ec6d589728a 100644 --- a/app/views/report/_schedule_form_timer.html.haml +++ b/app/views/report/_schedule_form_timer.html.haml @@ -18,7 +18,7 @@ = hidden_span_if(@edit[:new][:timer].typ.downcase != "daily", :id => "daily_span") do = _("every") = select_tag("timer_days", - options_for_select(TIMER_DAYS.map { |x, y| [_(x), y] }, @edit[:new][:timer].days), + options_for_select(ViewHelper::TIMER_DAYS.map { |x, y| [_(x), y] }, @edit[:new][:timer].days), :class => "selectpicker") :javascript miqInitSelectPicker(); @@ -26,7 +26,7 @@ = hidden_span_if(@edit[:new][:timer].typ.downcase != "hourly", :id => "hourly_span") do = _("every") = select_tag("timer_hours", - options_for_select(TIMER_HOURS.map { |x, y| [_(x), y] }, @edit[:new][:timer].hours), + options_for_select(ViewHelper::TIMER_HOURS.map { |x, y| [_(x), y] }, @edit[:new][:timer].hours), :class => "selectpicker") :javascript miqInitSelectPicker(); @@ -34,7 +34,7 @@ = hidden_span_if(@edit[:new][:timer].typ.downcase != "weekly", :id => "weekly_span") do = _("every") = select_tag("timer_weeks", - options_for_select(TIMER_WEEKS.map { |x, y| [_(x), y] }, @edit[:new][:timer].weeks), + options_for_select(ViewHelper::TIMER_WEEKS.map { |x, y| [_(x), y] }, @edit[:new][:timer].weeks), :class => "selectpicker") :javascript miqInitSelectPicker(); @@ -42,7 +42,7 @@ = hidden_span_if(@edit[:new][:timer].typ.downcase != "monthly", :id => "monthly_span") do = _("every") = select_tag("timer_months", - options_for_select(TIMER_MONTHS.map { |x, y| [_(x), y] }, @edit[:new][:timer].months), + options_for_select(ViewHelper::TIMER_MONTHS.map { |x, y| [_(x), y] }, @edit[:new][:timer].months), :class => "selectpicker") :javascript miqInitSelectPicker();