去掉项目动态查询中过大的时间跨度
This commit is contained in:
commit
4796524a97
|
@ -587,7 +587,7 @@ class ProjectsController < ApplicationController
|
||||||
end
|
end
|
||||||
|
|
||||||
has = {
|
has = {
|
||||||
"show_issues" => true,
|
"show_issues" => true ,
|
||||||
"show_files" => true,
|
"show_files" => true,
|
||||||
"show_documents" => true,
|
"show_documents" => true,
|
||||||
"show_messages" => true,
|
"show_messages" => true,
|
||||||
|
@ -598,7 +598,7 @@ class ProjectsController < ApplicationController
|
||||||
"show_journals_for_messages" => true
|
"show_journals_for_messages" => true
|
||||||
}
|
}
|
||||||
@date_to ||= Date.today + 1
|
@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')
|
@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]))
|
@author = (params[:user_id].blank? ? nil : User.active.find(params[:user_id]))
|
||||||
# 决定显示所用用户或单个用户活动
|
# 决定显示所用用户或单个用户活动
|
||||||
|
|
Loading…
Reference in New Issue