OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
openproject/lib/costs_issue_observer.rb

10 lines
231 B

class CostsIssueObserver < ActiveRecord::Observer
observe :issue
def after_update(issue)
if issue.project_id_changed?
CostEntry.update_all({:project_id => issue.project_id}, {:issue_id => id})
end
end
end