@@ -310,14 +310,15 class IssuesController < ApplicationController | |||||
310 | when 'destroy' |
|
310 | when 'destroy' | |
311 | # nothing to do |
|
311 | # nothing to do | |
312 | when 'nullify' |
|
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 | when 'reassign' |
|
314 | when 'reassign' | |
315 | reassign_to = @project.issues.find_by_id(params[:reassign_to_id]) |
|
315 | reassign_to = @project.issues.find_by_id(params[:reassign_to_id]) | |
316 | if reassign_to.nil? |
|
316 | if reassign_to.nil? | |
317 | flash.now[:error] = l(:error_issue_not_found_in_project) |
|
317 | flash.now[:error] = l(:error_issue_not_found_in_project) | |
318 | return |
|
318 | return | |
319 | else |
|
319 | else | |
320 |
TimeEntry. |
|
320 | TimeEntry.where(['issue_id IN (?)', @issues]). | |
|
321 | update_all("issue_id = #{reassign_to.id}") | |||
321 | end |
|
322 | end | |
322 | else |
|
323 | else | |
323 | # display the destroy form if it's a user request |
|
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