summaryrefslogtreecommitdiffstats
path: root/app/models
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2017-06-07 19:34:01 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2017-06-07 19:34:01 +0000
commite9a7d1be6357b8c38091412dc46819c262115cd9 (patch)
treeefcae9cc8f5a27af2dff27f7f6f771f44c95ec5d /app/models
parent3bb7524c1f282827331a31db3731fc2459d05186 (diff)
downloadredmine-e9a7d1be6357b8c38091412dc46819c262115cd9.tar.gz
redmine-e9a7d1be6357b8c38091412dc46819c262115cd9.zip
Merged r16619 (#26072).
git-svn-id: http://svn.redmine.org/redmine/branches/3.2-stable@16629 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models')
-rw-r--r--app/models/issue.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/issue.rb b/app/models/issue.rb
index a1505b4c3..d2dfa4f53 100644
--- a/app/models/issue.rb
+++ b/app/models/issue.rb
@@ -103,8 +103,8 @@ class Issue < ActiveRecord::Base
ids.any? ? where(:assigned_to_id => ids) : none
}
+ before_validation :default_assign, on: :create
before_validation :clear_disabled_fields
- before_create :default_assign
before_save :close_duplicates, :update_done_ratio_from_issue_status,
:force_updated_on_change, :update_closed_on, :set_assigned_to_was
after_save {|issue| issue.send :after_project_change if !issue.id_changed? && issue.project_id_changed?}