]> source.dussan.org Git - redmine.git/commitdiff
Update project_id column in case some time entries were on subtasks of different...
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 31 Dec 2016 15:16:23 +0000 (15:16 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 31 Dec 2016 15:16:23 +0000 (15:16 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@16120 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/issues_controller.rb

index 8686544ef138113885919791e4a2a43d253905f2..2a69d57ffc075c0aa5808900e0e31b83f8171281 100644 (file)
@@ -364,7 +364,7 @@ class IssuesController < ApplicationController
           flash.now[:error] = l(:error_cannot_reassign_time_entries_to_an_issue_about_to_be_deleted)
           return
         else
-          time_entries.update_all(:issue_id => reassign_to.id)
+          time_entries.update_all(:issue_id => reassign_to.id, :project_id => reassign_to.project_id)
         end
       else
         # display the destroy form if it's a user request