Skip to content

Commit

Permalink
Fixes editing an issue's deliverable.
Browse files Browse the repository at this point in the history
Broken by the Redmine core in r3308.
  • Loading branch information
edavis10 committed Mar 18, 2010
1 parent 94afb7a commit 43862fc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/budget_issue_hook.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,13 @@ def view_issues_bulk_edit_details_bottom(context = { })
return ''
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
#
Expand Down

0 comments on commit 43862fc

Please sign in to comment.