From fe22ef95a8d80f9189d741b020f6d0df6ef61183 Mon Sep 17 00:00:00 2001 From: Eric Davis Date: Wed, 4 Jun 2008 18:21:42 -0700 Subject: [PATCH] Added new hook for the issues_helper.show_details --- app/helpers/issues_helper.rb | 4 +++- lib/redmine/plugin.rb | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/app/helpers/issues_helper.rb b/app/helpers/issues_helper.rb index 9e419ab43..5b1330b6e 100644 --- a/app/helpers/issues_helper.rb +++ b/app/helpers/issues_helper.rb @@ -86,7 +86,9 @@ module IssuesHelper when 'attachment' label = l(:label_attachment) end - + + Redmine::Plugin::Hook.call_hook(:issues_helper_show_details, {:detail => detail, :label => label, :value => value, :old_value => old_value }) + label ||= detail.prop_key value ||= detail.value old_value ||= detail.old_value diff --git a/lib/redmine/plugin.rb b/lib/redmine/plugin.rb index 88a3d525b..3a0375bb1 100644 --- a/lib/redmine/plugin.rb +++ b/lib/redmine/plugin.rb @@ -137,7 +137,8 @@ module Redmine #:nodoc: :issue_bulk_edit_save => [], :issue_update => [], :project_member_list_header => [], - :project_member_list_column_three => [] + :project_member_list_column_three => [], + :issues_helper_show_details => [] } cattr_reader :hooks -- 2.39.5