mirror of
https://github.com/meineerde/redmine.git
synced 2026-02-01 03:57:15 +00:00
@ProjectQuery#results_scope@ should return @Project::ActiveRecord_Relation@ to keep the backward compatibility (#41678, #23954).
Patch by Nishida Yuya (user:nishidayuya). git-svn-id: https://svn.redmine.org/redmine/trunk@23187 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
bb0e2114a0
commit
586020045b
@ -166,11 +166,10 @@ class ProjectQuery < Query
|
||||
scope = scope.preload(:parent)
|
||||
end
|
||||
|
||||
projects = scope.to_a
|
||||
if has_column?(:last_activity_date)
|
||||
Project.load_last_activity_date(scope)
|
||||
end
|
||||
|
||||
projects
|
||||
scope
|
||||
end
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user