https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292009-01-09T22:12:54ZRedmineRedmine - Feature #2475: Hooks for IssuesControllerhttps://www.redmine.org/issues/2475?journal_id=65852009-01-09T22:12:54ZEric Davis
<ul><li><strong>Category</strong> set to <i>Plugin API</i></li><li><strong>Assignee</strong> set to <i>Eric Davis</i></li></ul><p>I'll add some hooks in there. I might move them a bit, I think they should run before any redirects.</p> Redmine - Feature #2475: Hooks for IssuesControllerhttps://www.redmine.org/issues/2475?journal_id=66222009-01-12T04:50:55ZEric Davis
<ul><li><strong>Subject</strong> changed from <i>Improved Hook support related to Issue submission</i> to <i>Hooks for IssuesController</i></li><li><strong>Status</strong> changed from <i>New</i> to <i>Closed</i></li><li><strong>Target version</strong> set to <i>0.8.1</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li><li><strong>Resolution</strong> set to <i>Fixed</i></li></ul><p>I've added the hooks in <a class="changeset" title="Added two new plugin hooks to IssuesController: * :controller_issues_new_after_save * :controlle..." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/2261">r2261</a>. If you need any other hooks, go ahead and open a new issue for them and assign it to me.</p> Redmine - Feature #2475: Hooks for IssuesControllerhttps://www.redmine.org/issues/2475?journal_id=116662009-10-27T21:20:49ZThales Ferreira
<ul><li><strong>Status</strong> changed from <i>Closed</i> to <i>Reopened</i></li></ul><p>Eric, the revision @2261 associated with this issue (for the version 0.8.1) wasn't yet merged into 0.8-branche. I was using (:controller_issues_new_after_save, :controller_issues_edit_after_save) api hooks for issues controller using 0.8-branche and them simply did not work.</p>
<p>I make a svn diff to last revision of the 0.8-branche (@2900) and to revision @2261 showing that which was put in your revision wasnt find in 0.8-branche.</p>
<p><code>@ -147,8 +147,8 </code>@<br /> attach_files(@issue, params[:attachments])<br /> flash[:notice] = l(:notice_successful_create)<br /> Mailer.deliver_issue_add(@issue) if Setting.notified_events.include?('i<br />ssue_added')<br />- redirect_to(params[:continue] ? { :action => 'new', :tracker_id => @iss<br />ue.tracker } :<br />- { :action => 'show', :id => @issue })<br />+ call_hook(:controller_issues_new_after_save, { :params => params, :issu<br />e => @issue})<br />+ redirect_to :controller => 'issues', :action => 'show', :id => @issue<br /> return<br /> end<br /> end</p>
<p><code>@ -194,6 +194,7 </code>@<br /> flash[:notice] = l(:notice_successful_update)<br /> Mailer.deliver_issue_edit(journal) if Setting.notified_events.include<br />?('issue_updated')<br /> end<br />+ call_hook(:controller_issues_edit_after_save, { :params => params, :iss<br />ue => @issue, :time_entry => @time_entry, :journal => journal})<br /> redirect_to(params[:back_to] || {:action => 'show', :id => @issue})<br /> end<br /> end</p> Redmine - Feature #2475: Hooks for IssuesControllerhttps://www.redmine.org/issues/2475?journal_id=116722009-10-28T10:43:11ZJean-Philippe Langjp_lang@yahoo.fr
<ul><li><strong>Target version</strong> changed from <i>0.8.1</i> to <i>0.8.6</i></li></ul> Redmine - Feature #2475: Hooks for IssuesControllerhttps://www.redmine.org/issues/2475?journal_id=117942009-11-04T10:02:24ZJean-Philippe Langjp_lang@yahoo.fr
<ul><li><strong>Status</strong> changed from <i>Reopened</i> to <i>Closed</i></li></ul><p>Merged in 0.8-stable in <a class="changeset" title="Merged r2261 from trunk." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/2997">r2997</a>.</p>