app/controllers/work_accounts_controller.rb in backlog-0.23.0 vs app/controllers/work_accounts_controller.rb in backlog-0.23.1
- old
+ new
@@ -57,10 +57,10 @@
def works
work_account = WorkAccount.find(params[:id])
@report_filter = ReportFilter.new(params[:report_filter])
@report_filter.title = "#{l :hours} for #{work_account.name} #{@report_filter.start_on && @report_filter.start_on.strftime('%Y-%m-%d - ')}#{@report_filter.end_on && @report_filter.end_on.strftime('%Y-%m-%d')}"
- @works = Work.paginate :conditions => ["completed_at BETWEEN ? AND ? AND work_account_id = ?", @report_filter.start_on, @report_filter.end_on, work_account.id], :page => params[:page], :per_page => @report_filter.page_size
+ @works = Work.paginate :conditions => ["completed_at BETWEEN ? AND ? AND work_account_id = ?", @report_filter.start_on, @report_filter.end_on + 1, work_account.id], :page => params[:page], :per_page => @report_filter.page_size
if params[:export] == 'excel'
render :template => '/works/list_excel', :layout => false
else
render :template => '/works/list'
end