default_search_scope :issues
before_filter :find_issues, :check_project_uniqueness
before_filter :authorize
-
+
def new
prepare_for_issue_move
render :layout => false if request.xhr?
@copy = params[:copy_options] && params[:copy_options][:copy]
@allowed_projects = Issue.allowed_target_projects_on_move
@target_project = @allowed_projects.detect {|p| p.id.to_s == params[:new_project_id]} if params[:new_project_id]
- @target_project ||= @project
+ @target_project ||= @project
@trackers = @target_project.trackers
@available_statuses = Workflow.available_statuses(@project)
@notes = params[:notes]