]> source.dussan.org Git - redmine.git/commitdiff
Added hooks to issue_edit, issue_bulk_edit, and issue_show. #1147
authorEric Davis <edavis@littlestreamsoftware.com>
Tue, 27 May 2008 23:46:14 +0000 (16:46 -0700)
committerEric Davis <edavis@littlestreamsoftware.com>
Thu, 24 Jul 2008 00:26:53 +0000 (17:26 -0700)
app/views/issues/_form.rhtml
app/views/issues/bulk_edit.rhtml
app/views/issues/show.rhtml

index 9bb74fd34748b8dab51c4b5d2e929e319de450d6..f933a7c357714e426e12590e692bfec3f726a1ad 100644 (file)
@@ -48,4 +48,8 @@
 <p><label><%=l(:label_attachment_plural)%></label><%= render :partial => 'attachments/form' %></p>
 <% end %>
 
+<% if Redmine::Plugin::Hook.hook_registered?(:issue_edit) %>
+  <%= Redmine::Plugin::Hook.call_hook(:issue_edit, {:project => @project, :issue => @issue, :form => f }) %>
+<% end %>
+
 <%= wikitoolbar_for 'issue_description' %>
index 86bc76765b22124c039fa58404183d2285b15ed5..92a340a934ef1dae9ba08e2bb05432b776aaaa65 100644 (file)
@@ -38,6 +38,9 @@
 <label><%= l(:field_done_ratio) %>: 
 <%= select_tag 'done_ratio', options_for_select([[l(:label_no_change_option), '']] + (0..10).to_a.collect {|r| ["#{r*10} %", r*10] }) %></label>
 </p>
+<% if Redmine::Plugin::Hook.hook_registered?(:issue_bulk_edit) %>
+  <%= Redmine::Plugin::Hook.call_hook(:issue_bulk_edit, {:project => @project, :issue => @issues }) %>
+<% end %>
 </fieldset>
 
 <fieldset><legend><%= l(:field_notes) %></legend>
index b71a02ee72a7ca03134c8ddd8c3189b75d6d0e0e..f72ac6d2422581f1bb53df561e5c01e47d694fc0 100644 (file)
  <%end
 end %>
 </tr>
+<% if Redmine::Plugin::Hook.hook_registered?(:issue_show) %>
+  <%= Redmine::Plugin::Hook.call_hook(:issue_show, {:project => @project, :issue => @issue}) %>
+<% end %>
+       
 </table>
 <hr />