Defect #99 ยป projects_controller.patch
/home/matthijs/workspace/redMine/app/controllers/projects_controller.rb (working copy) | ||
---|---|---|
402 | 402 |
i.project = new_project |
403 | 403 |
i.tracker = new_tracker |
404 | 404 |
i.save |
405 |
# move time_entries for this issue to the new project |
|
406 |
TimeEntry.find(:all, :conditions => ["issue_id=?",i.id]).each do |t| |
|
407 |
t.project_id = new_project.id |
|
408 |
t.save! |
|
409 |
end |
|
405 | 410 |
} |
406 | 411 |
flash[:notice] = l(:notice_successful_update) |
407 | 412 |
redirect_to :action => 'list_issues', :id => @project |