@@ -310,14 +310,15 class IssuesController < ApplicationController | |||
|
310 | 310 | when 'destroy' |
|
311 | 311 | # nothing to do |
|
312 | 312 | when 'nullify' |
|
313 | TimeEntry.update_all('issue_id = NULL', ['issue_id IN (?)', @issues]) | |
|
313 | TimeEntry.where(['issue_id IN (?)', @issues]).update_all('issue_id = NULL') | |
|
314 | 314 | when 'reassign' |
|
315 | 315 | reassign_to = @project.issues.find_by_id(params[:reassign_to_id]) |
|
316 | 316 | if reassign_to.nil? |
|
317 | 317 | flash.now[:error] = l(:error_issue_not_found_in_project) |
|
318 | 318 | return |
|
319 | 319 | else |
|
320 |
TimeEntry. |
|
|
320 | TimeEntry.where(['issue_id IN (?)', @issues]). | |
|
321 | update_all("issue_id = #{reassign_to.id}") | |
|
321 | 322 | end |
|
322 | 323 | else |
|
323 | 324 | # display the destroy form if it's a user request |
General Comments 0
You need to be logged in to leave comments.
Login now