From 84eee82209f5251febd4e31a43dcb217834c23f1 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Fri, 5 Dec 2014 08:58:42 +0000 Subject: [PATCH] Removed unused and deprecated Issue#move_to_project method. git-svn-id: http://svn.redmine.org/redmine/trunk@13711 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/models/issue.rb | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/app/models/issue.rb b/app/models/issue.rb index 0a72b983d..cfe91adae 100644 --- a/app/models/issue.rb +++ b/app/models/issue.rb @@ -246,33 +246,6 @@ class Issue < ActiveRecord::Base @copied_from.present? end - # Moves/copies an issue to a new project and tracker - # Returns the moved/copied issue on success, false on failure - def move_to_project(new_project, new_tracker=nil, options={}) - ActiveSupport::Deprecation.warn "Issue#move_to_project is deprecated, use #project= instead." - - if options[:copy] - issue = self.copy - else - issue = self - end - - issue.init_journal(User.current, options[:notes]) - - # Preserve previous behaviour - # #move_to_project doesn't change tracker automatically - issue.send :project=, new_project, true - if new_tracker - issue.tracker = new_tracker - end - # Allow bulk setting of attributes on the issue - if options[:attributes] - issue.attributes = options[:attributes] - end - - issue.save ? issue : false - end - def status_id=(status_id) if status_id.to_s != self.status_id.to_s self.status = (status_id.present? ? IssueStatus.find_by_id(status_id) : nil) -- 2.39.5