summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2015-12-20 12:32:29 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2015-12-20 12:32:29 +0000
commit18b4925cee168185c24e2aa33e56786fdf7c676c (patch)
tree4c38a45526471d2fe3416f08ec3ff0985feadb08
parent0fdec26cf2fe5a74c7ef40dc03bdf5f43235f27b (diff)
downloadredmine-18b4925cee168185c24e2aa33e56786fdf7c676c.tar.gz
redmine-18b4925cee168185c24e2aa33e56786fdf7c676c.zip
IssuePriority.position_name not recalculated every time it should (#21504).
Patch by Felix Schäfer. git-svn-id: http://svn.redmine.org/redmine/trunk@14988 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--app/models/issue_priority.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/issue_priority.rb b/app/models/issue_priority.rb
index b925c3e04..e5b2d473f 100644
--- a/app/models/issue_priority.rb
+++ b/app/models/issue_priority.rb
@@ -19,7 +19,7 @@ class IssuePriority < Enumeration
has_many :issues, :foreign_key => 'priority_id'
after_destroy {|priority| priority.class.compute_position_names}
- after_save {|priority| priority.class.compute_position_names if priority.position_changed? && priority.position}
+ after_save {|priority| priority.class.compute_position_names if (priority.position_changed? && priority.position) || priority.active_changed?}
OptionName = :enumeration_issue_priorities