Project

General

Profile

Defect #4761 ยป projects_controller.rb.diff

Yuki Kita, 2010-02-08 11:02

View differences:

app/controllers/projects_controller.rb (working copy)
356 356
    @issues_by_version = {}
357 357
    unless @selected_tracker_ids.empty?
358 358
      @versions.each do |version|
359
        conditions = {:tracker_id => @selected_tracker_ids}
360
        if !@project.versions.include?(version)
361
          conditions.merge!(:project_id => project_ids)
362
        end
359
        conditions = {:tracker_id => @selected_tracker_ids, :project_id => project_ids}
363 360
        issues = version.fixed_issues.visible.find(:all,
364 361
                                                   :include => [:project, :status, :tracker, :priority],
365 362
                                                   :conditions => conditions,
    (1-1/1)