summaryrefslogtreecommitdiffstats
path: root/app/models/issue_relation.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/issue_relation.rb')
-rw-r--r--app/models/issue_relation.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/models/issue_relation.rb b/app/models/issue_relation.rb
index 854e4255b..28b525ff5 100644
--- a/app/models/issue_relation.rb
+++ b/app/models/issue_relation.rb
@@ -57,7 +57,8 @@ class IssueRelation < ActiveRecord::Base
(issue_to.nil? || user.allowed_to?(:manage_issue_relations, issue_to.project)))
end
- def after_initialize
+ def initialize(attributes=nil, *args)
+ super
if new_record?
if relation_type.blank?
self.relation_type = IssueRelation::TYPE_RELATES