Feature #1063 » redmine-autoupdate-v2.patch
| app/controllers/projects_controller.rb (working copy) | ||
|---|---|---|
|
end
|
||
|
if @scope.include?('changesets')
|
||
|
# check if new revisions have been committed in the repository
|
||
|
if @project
|
||
|
@project.repository.fetch_changesets if Setting.autofetch_changesets? && @project.repository
|
||
|
else
|
||
|
Repository.fetch_changesets if Setting.autofetch_changesets?
|
||
|
end
|
||
|
cond = ARCondition.new(Project.allowed_to_condition(User.current, :view_changesets, :project => @project, :with_subprojects => @with_subprojects))
|
||
|
cond.add(["#{Changeset.table_name}.committed_on BETWEEN ? AND ?", @date_from, @date_to])
|
||
|
@events += Changeset.find(:all, :include => {:repository => :project}, :conditions => cond.conditions)
|
||
- « Previous
- 1
- 2
- 3
- Next »