From ea7ff8dd76c4491c43acccbf66216c2d76d48447 Mon Sep 17 00:00:00 2001 From: Eric Davis Date: Sat, 30 May 2009 22:34:27 +0000 Subject: Added hook, :model_changeset_scan_commit_for_issue_ids_pre_issue_update. #3279 git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2773 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/models/changeset.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app/models/changeset.rb') diff --git a/app/models/changeset.rb b/app/models/changeset.rb index eaa51b617..d076b307b 100644 --- a/app/models/changeset.rb +++ b/app/models/changeset.rb @@ -112,6 +112,8 @@ class Changeset < ActiveRecord::Base journal = issue.init_journal(user || User.anonymous, ll(Setting.default_language, :text_status_changed_by_changeset, csettext)) issue.status = fix_status issue.done_ratio = done_ratio if done_ratio + Redmine::Hook.call_hook(:model_changeset_scan_commit_for_issue_ids_pre_issue_update, + { :changeset => self, :issue => issue }) issue.save end end -- cgit v1.2.3