summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2014-12-05 08:58:42 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2014-12-05 08:58:42 +0000
commit84eee82209f5251febd4e31a43dcb217834c23f1 (patch)
tree07f30f13611b9143befcffe79a8c17e0a80499dd /app
parent8323bc98f5a9ffe9cb14bd0e262d4d06e30db146 (diff)
downloadredmine-84eee82209f5251febd4e31a43dcb217834c23f1.tar.gz
redmine-84eee82209f5251febd4e31a43dcb217834c23f1.zip
Removed unused and deprecated Issue#move_to_project method.
git-svn-id: http://svn.redmine.org/redmine/trunk@13711 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/models/issue.rb27
1 files changed, 0 insertions, 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)