From: Eric Davis Date: Thu, 5 Jun 2008 01:21:42 +0000 (-0700) Subject: Added new hook for the issues_helper.show_details X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=fe22ef95a8d80f9189d741b020f6d0df6ef61183;p=redmine.git Added new hook for the issues_helper.show_details --- 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