去掉项目动态查询中过大的时间跨度

This commit is contained in:
lizanle 2015-01-19 14:09:58 +08:00
commit 4796524a97
1 changed files with 2 additions and 2 deletions

View File

@ -587,7 +587,7 @@ class ProjectsController < ApplicationController
end
has = {
"show_issues" => true,
"show_issues" => true ,
"show_files" => true,
"show_documents" => true,
"show_messages" => true,
@ -598,7 +598,7 @@ class ProjectsController < ApplicationController
"show_journals_for_messages" => true
}
@date_to ||= Date.today + 1
@date_from = @date_to - @days-1.years
@date_from = @date_to - @days#-1.years #modified by lizanle 去掉這個1年的時間跨度
@with_subprojects = params[:with_subprojects].nil? ? Setting.display_subprojects_issues? : (params[:with_subprojects] == '1')
@author = (params[:user_id].blank? ? nil : User.active.find(params[:user_id]))
# 决定显示所用用户或单个用户活动