Project

General

Profile

Feature #1063 » redmine-autoupdate-v2.patch

Eike Bernhardt, 2008-05-22 10:17

View differences:

app/controllers/projects_controller.rb (working copy)
302 302
    end
303 303

  
304 304
    if @scope.include?('changesets')
305
      # check if new revisions have been committed in the repository
306
      if @project
307
        @project.repository.fetch_changesets if Setting.autofetch_changesets? && @project.repository
308
      else
309
        Repository.fetch_changesets if Setting.autofetch_changesets?
310
      end
305 311
      cond = ARCondition.new(Project.allowed_to_condition(User.current, :view_changesets, :project => @project, :with_subprojects => @with_subprojects))
306 312
      cond.add(["#{Changeset.table_name}.committed_on BETWEEN ? AND ?", @date_from, @date_to])
307 313
      @events += Changeset.find(:all, :include => {:repository => :project}, :conditions => cond.conditions)
(3-3/3)