Patch by Holger Just.
git-svn-id: http://svn.redmine.org/redmine/trunk@17329
e93f8b46-1217-0410-a6f0-
8f06a7374b81
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.saved_change_to_position? && priority.position) || priority.saved_change_to_active?}
+ after_save {|priority| priority.class.compute_position_names if (priority.saved_change_to_position? && priority.position) || priority.saved_change_to_active? || priority.saved_change_to_is_default?}
OptionName = :enumeration_issue_priorities