Update project_id column in case some time entries were on subtasks of different projects (#24693).

git-svn-id: http://svn.redmine.org/redmine/trunk@16120 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2016-12-31 15:16:23 +00:00
parent 7c615b1ffe
commit 1b30422354

View 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