Fixes editing an issue's deliverable.

Broken by the Redmine core in r3308.
This commit is contained in:
Eric Davis committed 2010-03-17 18:45:20 -07:00
1 parent 94afb7a1ca
commit 43862fc3b9
1 file changed
+7
+7
View File
@@ -48,6 +48,13 @@ class BudgetIssueHook < Redmine::Hook::ViewListener
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
# #
# Context: # Context: