mirror of
https://github.com/redmine/redmine.git
synced 2025-11-05 04:45:57 +01:00
Don't show the "reassign" option when deleting issues from different projects (#24722).
git-svn-id: http://svn.redmine.org/redmine/trunk@16121 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -356,7 +356,7 @@ class IssuesController < ApplicationController
|
||||
when 'nullify'
|
||||
time_entries.update_all(:issue_id => nil)
|
||||
when 'reassign'
|
||||
reassign_to = @project.issues.find_by_id(params[:reassign_to_id])
|
||||
reassign_to = @project && @project.issues.find_by_id(params[:reassign_to_id])
|
||||
if reassign_to.nil?
|
||||
flash.now[:error] = l(:error_issue_not_found_in_project)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user