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