https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292013-10-13T10:32:42ZRedmineRedmine - Defect #15044: Patch for giving controller_issues_edit_after_save api hook the correct contexthttps://www.redmine.org/issues/15044?journal_id=524992013-10-13T10:32:42ZJean-Philippe Langjp_lang@yahoo.fr
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Closed</i></li><li><strong>Assignee</strong> set to <i>Jean-Philippe Lang</i></li><li><strong>Target version</strong> set to <i>2.4.0</i></li><li><strong>Resolution</strong> set to <i>Fixed</i></li></ul><p>You're right about this, patch committed in <a class="changeset" title="Fixed that controller_issues_edit_before/after_save hooks have no controller context (#15044). P..." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/12219">r12219</a>.</p>
<p>Note that your patch broke a few tests with a <code>undefined local variable or method `project'</code> error, <code>project</code> had to be replaced with <code>@issue.project</code>.</p>