Project

General

Profile

Patch #41678 » fix_lost_backward_compatibility_about_return_type_of_ProjectQuery_results_scope.patch

Nishida Yuya, 2024-11-01 19:00

View differences:

app/models/project_query.rb
166 166
      scope = scope.preload(:parent)
167 167
    end
168 168

  
169
    projects = scope.to_a
170 169
    if has_column?(:last_activity_date)
171 170
      Project.load_last_activity_date(scope)
172 171
    end
173 172

  
174
    projects
173
    scope
175 174
  end
176 175
end
(1-1/2)