diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-09-20 11:18:53 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-09-20 11:18:53 +0000 |
commit | a5de0fec9e97a7951a0bef465451d0a1d16bf7b4 (patch) | |
tree | 5421a652b8d82ce2d4fee3b96eb78a704dafa36e /app/models/issue.rb | |
parent | 49604a3bae39e22507b5069fb4fba832c30ab032 (diff) | |
download | redmine-a5de0fec9e97a7951a0bef465451d0a1d16bf7b4.tar.gz redmine-a5de0fec9e97a7951a0bef465451d0a1d16bf7b4.zip |
Internal error when moving an issue to a project without trackers (#20463).
git-svn-id: http://svn.redmine.org/redmine/trunk@14612 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/issue.rb')
-rw-r--r-- | app/models/issue.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/models/issue.rb b/app/models/issue.rb index c7ad2a063..13299b60e 100644 --- a/app/models/issue.rb +++ b/app/models/issue.rb @@ -873,6 +873,11 @@ class Issue < ActiveRecord::Base end end + # Returns the original tracker + def tracker_was + Tracker.find_by_id(tracker_id_was) + end + # Returns the users that should be notified def notified_users notified = [] |