diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-02-29 22:54:07 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-02-29 22:54:07 +0000 |
commit | c01c64e9783dc361d98ca8dc37d2b3a661ae1945 (patch) | |
tree | 42c3c5a2b6e59e5a1879601f37d69d4c651911e3 /app/models/issue.rb | |
parent | 87742f23edb3bbcbaf12540d2ff510ad8edac09e (diff) | |
download | redmine-c01c64e9783dc361d98ca8dc37d2b3a661ae1945.tar.gz redmine-c01c64e9783dc361d98ca8dc37d2b3a661ae1945.zip |
Let the user choose when deleting issues with reported hours (closes #734, #71):
* to delete the hours
* to assign the hours to the project
* to reassign the hours to another issue
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1182 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/issue.rb')
-rw-r--r-- | app/models/issue.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/issue.rb b/app/models/issue.rb index 9d7f6eaaf..1d25a4604 100644 --- a/app/models/issue.rb +++ b/app/models/issue.rb @@ -27,7 +27,7 @@ class Issue < ActiveRecord::Base has_many :journals, :as => :journalized, :dependent => :destroy has_many :attachments, :as => :container, :dependent => :destroy - has_many :time_entries, :dependent => :nullify + has_many :time_entries, :dependent => :delete_all has_many :custom_values, :dependent => :delete_all, :as => :customized has_many :custom_fields, :through => :custom_values has_and_belongs_to_many :changesets, :order => "revision ASC" |