From b40c7d977d5275a8d4f109d9866bbedd6ab17bc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A1=D0=B0=D1=88=D0=B0=20=D0=98=D0=B2=D0=B0=D0=BD=D0=BE?= =?UTF-8?q?=D0=B2?= Date: Fri, 25 Oct 2013 22:53:38 +0600 Subject: [PATCH] reorder preiod select MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ш think this order nore correctly because of ascending sort order. --- app/helpers/timelog_helper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/helpers/timelog_helper.rb b/app/helpers/timelog_helper.rb index cf5629f5206..83a2b26c5a5 100644 --- a/app/helpers/timelog_helper.rb +++ b/app/helpers/timelog_helper.rb @@ -72,8 +72,7 @@ def sum_hours(data) end def options_for_period_select(value) - options_for_select([[l(:label_all_time), 'all'], - [l(:label_today), 'today'], + options_for_select([[l(:label_today), 'today'], [l(:label_yesterday), 'yesterday'], [l(:label_this_week), 'current_week'], [l(:label_last_week), 'last_week'], @@ -83,6 +82,7 @@ def options_for_period_select(value) [l(:label_last_month), 'last_month'], [l(:label_last_n_days, 30), '30_days'], [l(:label_this_year), 'current_year']], + [l(:label_all_time), 'all'] value) end