fixed bug with creating links to the issue

This commit is contained in:
Alexander Machehin 2013-07-04 19:35:01 +06:00
parent 507a574fd1
commit 4274e397bd
1 changed files with 3 additions and 1 deletions

View File

@ -31,6 +31,8 @@ module Modules::Observers::ActivityFeed::Issue
}
)
end
project.hooks.each{ |h| h.receive_issues(self, action) }
Comment.create_link_on_issues_from_item(self)
end
def send_assign_notifications(action = :create)
@ -52,7 +54,7 @@ module Modules::Observers::ActivityFeed::Issue
}
)
end
project.hooks.each{ |h| h.receive_issues(self, action) } if action == :create || status_changed?
project.hooks.each{ |h| h.receive_issues(self, action) } if status_changed?
# dont remove outdated issues link
Comment.create_link_on_issues_from_item(self)
end