summaryrefslogtreecommitdiffstats
path: root/app/models/issue.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-07-02 15:59:35 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-07-02 15:59:35 +0000
commit384aa50be3848823addc37333b97e5fb5a6fcb92 (patch)
treefc5cd61d5f7005bdb58b60830c2391b8dc87f68b /app/models/issue.rb
parent8687401d6527dc23055f7f7816add05e4be51377 (diff)
downloadredmine-384aa50be3848823addc37333b97e5fb5a6fcb92.tar.gz
redmine-384aa50be3848823addc37333b97e5fb5a6fcb92.zip
Fixed: issue_id not nullified on time entries when deleting the issue
git-svn-id: http://redmine.rubyforge.org/svn/trunk@581 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/issue.rb')
-rw-r--r--app/models/issue.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/issue.rb b/app/models/issue.rb
index adc79557d..ec62d0a01 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
+ has_many :time_entries, :dependent => :nullify
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"