Revert hook names as they haven't been migrated yet.

pull/6827/head
Christian Rijke 11 years ago
parent fe732cf767
commit 46e4a7e214
  1. 2
      lib/open_project/costs/hooks/work_package_action_menu.rb
  2. 10
      lib/open_project/costs/hooks/work_package_hook.rb

@ -1,4 +1,4 @@
# Hooks to attach to the OpenProject action menu.
class OpenProject::Costs::Hooks::WorkPackageActionMenuHook < Redmine::Hook::ViewListener
render_on :view_work_package_show_action_menu, :partial => 'hooks/view_work_package_show_action_menu'
render_on :view_issues_show_action_menu, :partial => 'hooks/view_work_package_show_action_menu'
end

@ -1,17 +1,17 @@
# Hooks to attach to the Redmine WorkPackages.
class OpenProject::Costs::Hooks::WorkPackageHook < Redmine::Hook::ViewListener
# Renders the Cost Object subject and basic costs information
render_on :view_work_packages_show_details_bottom, :partial => 'hooks/view_work_packages_show_details_bottom'
render_on :view_issues_show_details_bottom, :partial => 'hooks/view_work_packages_show_details_bottom'
# Renders a select tag with all the Cost Objects
render_on :view_work_packages_form_details_bottom, :partial => 'hooks/view_work_packages_form_details_bottom'
render_on :view_issues_packages_form_details_bottom, :partial => 'hooks/view_work_packages_form_details_bottom'
# Renders a select tag with all the Cost Objects for the bulk edit page
render_on :view_work_packages_bulk_edit_details_bottom, :partial => 'hooks/view_work_packages_bulk_edit_details_bottom'
render_on :view_issues_bulk_edit_details_bottom, :partial => 'hooks/view_work_packages_bulk_edit_details_bottom'
render_on :view_work_packages_move_bottom, :partial => 'hooks/view_work_packages_move_bottom'
render_on :view_issues_move_bottom, :partial => 'hooks/view_work_packages_move_bottom'
render_on :view_work_packages_context_menu_end, :partial => 'hooks/view_work_packages_context_menu_end'
render_on :view_issues_context_menu_end, :partial => 'hooks/view_work_packages_context_menu_end'
# Updates the cost object after a move

Loading…
Cancel
Save