From: Jean-Philippe Lang
Date: Fri, 5 Sep 2008 10:31:06 +0000 (+0000)
Subject: Merged hooks branch @ r1785 into trunk.
X-Git-Tag: 0.8.0-RC1~261
X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f7acdd1afde3018a9f7c0a7dc3b6bd97a65670a2;p=redmine.git
Merged hooks branch @ r1785 into trunk.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1786 e93f8b46-1217-0410-a6f0-8f06a7374b81
---
diff --git a/app/controllers/issues_controller.rb b/app/controllers/issues_controller.rb
index 3f7723226..7d572924f 100644
--- a/app/controllers/issues_controller.rb
+++ b/app/controllers/issues_controller.rb
@@ -233,6 +233,7 @@ class IssuesController < ApplicationController
issue.start_date = params[:start_date] unless params[:start_date].blank?
issue.due_date = params[:due_date] unless params[:due_date].blank?
issue.done_ratio = params[:done_ratio] unless params[:done_ratio].blank?
+ call_hook(:controller_issues_bulk_edit_before_save, { :params => params, :issue => issue })
# Don't save any change to the issue if the user is not authorized to apply the requested status
if (status.nil? || (issue.status.new_status_allowed_to?(status, current_role, issue.tracker) && issue.status = status)) && issue.save
# Send notification for each issue (if changed)
diff --git a/app/helpers/issues_helper.rb b/app/helpers/issues_helper.rb
index c6de00c10..43acabd19 100644
--- a/app/helpers/issues_helper.rb
+++ b/app/helpers/issues_helper.rb
@@ -89,7 +89,8 @@ module IssuesHelper
when 'attachment'
label = l(:label_attachment)
end
-
+ call_hook(:helper_issues_show_detail_after_setting, {: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/app/views/issues/_form.rhtml b/app/views/issues/_form.rhtml
index 4eca3cb4a..419536fee 100644
--- a/app/views/issues/_form.rhtml
+++ b/app/views/issues/_form.rhtml
@@ -48,4 +48,6 @@
<%= render :partial => 'attachments/form' %>
<% end %>
+<%= call_hook(:view_issues_form_details_bottom, { :issue => @issue, :form => f }) %>
+
<%= wikitoolbar_for 'issue_description' %>
diff --git a/app/views/issues/bulk_edit.rhtml b/app/views/issues/bulk_edit.rhtml
index 86bc76765..b916cf092 100644
--- a/app/views/issues/bulk_edit.rhtml
+++ b/app/views/issues/bulk_edit.rhtml
@@ -38,6 +38,7 @@
+<%= call_hook(:view_issues_bulk_edit_details_bottom, { :issues => @issues }) %>