Skip to content

Commit 411a3ed

Browse files
anna-devKagemaru
authored andcommitted
Fix period for workload report (64619)
1 parent 85ac54e commit 411a3ed

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

app/controllers/workload_report_controller.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,11 @@ def set_department
3434
@department = Department.where(id: params[:department_id]).first
3535
end
3636

37-
# rubocop:disable Naming/MemoizedInstanceVariableName
3837
def set_period
3938
super
4039
@period ||= default_period
40+
session[:period] = [@period.start_date.to_s, @period.end_date.to_s, @period.label]
4141
end
42-
# rubocop:enable Naming/MemoizedInstanceVariableName
4342

4443
def default_period
4544
month = Time.zone.today.last_month

0 commit comments

Comments
 (0)