issue parameter is contained in the context hash.

git-svn-id: https://dev.finn.de/svn/cockpit/trunk@523 7926756e-e54e-46e6-9721-ed318f58905e
pull/6827/head
hjust 15 years ago
parent d08d973b0f
commit 5c353e921b
  1. 2
      lib/costs_issue_hook.rb

@ -30,7 +30,7 @@ class CostsIssueHook < Redmine::Hook::ViewListener
when "" # a.k.a "(No change)"
# cost objects HAVE to be changed if move is performed across project boundaries
# as the are project specific
issue.cost_object_id = nil unless issue.project == context[:target_project]
issue.cost_object_id = nil unless (context[:issue] && (context[:issue].project == context[:target_project]))
when "none"
issue.cost_object_id = nil
else

Loading…
Cancel
Save