From 46e4a7e2148788557a9181819b4e0c79272adfa2 Mon Sep 17 00:00:00 2001 From: Christian Rijke Date: Thu, 19 Sep 2013 10:43:11 +0200 Subject: [PATCH] Revert hook names as they haven't been migrated yet. --- .../costs/hooks/work_package_action_menu.rb | 2 +- lib/open_project/costs/hooks/work_package_hook.rb | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/open_project/costs/hooks/work_package_action_menu.rb b/lib/open_project/costs/hooks/work_package_action_menu.rb index 1004ab1255..0f1e107f19 100644 --- a/lib/open_project/costs/hooks/work_package_action_menu.rb +++ b/lib/open_project/costs/hooks/work_package_action_menu.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 diff --git a/lib/open_project/costs/hooks/work_package_hook.rb b/lib/open_project/costs/hooks/work_package_hook.rb index 977a389ae9..3c04971b51 100644 --- a/lib/open_project/costs/hooks/work_package_hook.rb +++ b/lib/open_project/costs/hooks/work_package_hook.rb @@ -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