Browse Source

Added new hook for the issues_helper.show_details

plugin-hooks
Eric Davis 16 years ago
parent
commit
fe22ef95a8
2 changed files with 5 additions and 2 deletions
  1. 3
    1
      app/helpers/issues_helper.rb
  2. 2
    1
      lib/redmine/plugin.rb

+ 3
- 1
app/helpers/issues_helper.rb View 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

+ 2
- 1
lib/redmine/plugin.rb View 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

Loading…
Cancel
Save