Fixes editing an issue's deliverable.

Broken by the Redmine core in r3308.
This commit is contained in:
Eric Davis
2010-03-17 18:45:20 -07:00
parent 94afb7a1ca
commit 43862fc3b9

View File

@@ -47,6 +47,13 @@ class BudgetIssueHook < Redmine::Hook::ViewListener
return '' return ''
end end
end end
def controller_issues_edit_before_save(context = {})
if context[:params] && context[:params][:issue]
context[:issue].deliverable = Deliverable.find_by_id_and_project_id(context[:params][:issue][:deliverable_id], context[:issue].project.id)
end
return ''
end
# Saves the Deliverable assignment to the issue # Saves the Deliverable assignment to the issue
# #