]> source.dussan.org Git - redmine.git/commitdiff
Added new hook for the issues_helper.show_details
authorEric Davis <edavis@littlestreamsoftware.com>
Thu, 5 Jun 2008 01:21:42 +0000 (18:21 -0700)
committerEric Davis <edavis@littlestreamsoftware.com>
Thu, 24 Jul 2008 00:30:27 +0000 (17:30 -0700)
app/helpers/issues_helper.rb
lib/redmine/plugin.rb

index 9e419ab43863717168e385013ae650b992d7d40c..5b1330b6e2be89826eab6c9300adeda875284ab9 100644 (file)
@@ -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
index 88a3d525be92d84a1b6cfc5e62284ad704cc0bd1..3a0375bb13e9f44d9812bbb39c03889b0635f100 100644 (file)
@@ -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