Project

General

Profile

Patch #26726

Updated by Toshi MARUYAMA over 7 years ago

<pre><code class="ruby"> ``` 
 redmine/app/controllers/versions_controller.rb:37:          project_ids = @with_subprojects ? @project.self_and_descendants.collect(&:id) : [@project.id] 
 redmine/app/controllers/versions_controller.rb:37:          project_ids = @with_subprojects ? @project.self_and_descendants.collect(&:id) : [@project.id] 
 redmine/app/models/issue.rb:1383:      moved_project_ids = project.self_and_descendants.reload.collect(&:id) 
 </code></pre> ``` 

 could change collect to pluck

Back