Skip to content

Commit

Permalink
remove "last 2 weeks" option because it is not implemented
Browse files Browse the repository at this point in the history
  • Loading branch information
jkalbhenn committed Jan 14, 2016
1 parent bc736b7 commit 4db096e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/helpers/timesheet_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ def options_for_period_select(value)
[l(:label_yesterday), 'yesterday'],
[l(:label_this_week), 'current_week'],
[l(:label_last_week), 'last_week'],
[l(:label_last_n_weeks, 2), 'last_2_weeks'],
[l(:label_last_n_days, 7), '7_days'],
[l(:label_this_month), 'current_month'],
[l(:label_last_month), 'last_month'],
Expand Down Expand Up @@ -140,14 +139,13 @@ def user_options(timesheet)
selected_users)

end

def options_for_period_select(value)
options_for_select([[l(:label_all_time), 'all'],
[l(:label_today), 'today'],
[l(:label_yesterday), 'yesterday'],
[l(:label_this_week), 'current_week'],
[l(:label_last_week), 'last_week'],
[l(:label_last_n_weeks, 2), 'last_2_weeks'],
[l(:label_last_n_days, 7), '7_days'],
[l(:label_this_month), 'current_month'],
[l(:label_last_month), 'last_month'],
Expand Down

0 comments on commit 4db096e

Please sign in to comment.