summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2024-06-27 04:49:38 +0000
committerGo MAEDA <maeda@farend.jp>2024-06-27 04:49:38 +0000
commit15223f559e68dc19ee2db63ae080abef1196b244 (patch)
tree1ed088b9fb6e9f0d7b9a423bc1f6b25ee20e7924 /app
parent940dfa21fa863e046309b3604e587b982a2c60bd (diff)
downloadredmine-15223f559e68dc19ee2db63ae080abef1196b244.tar.gz
redmine-15223f559e68dc19ee2db63ae080abef1196b244.zip
Merged r22895 and r22896 from trunk to 5.1-stable (#40860).
git-svn-id: https://svn.redmine.org/redmine/branches/5.1-stable@22900 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-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 dddb9df6b..6e69b5560 100644
--- a/app/models/issue.rb
+++ b/app/models/issue.rb
@@ -2069,7 +2069,7 @@ class Issue < ActiveRecord::Base
tracker.disabled_core_fields.each do |attribute|
send "#{attribute}=", nil
end
- self.priority_id ||= IssuePriority.default&.id || IssuePriority.active.first.id
+ self.priority_id ||= IssuePriority.default&.id || IssuePriority.active.first&.id
self.done_ratio ||= 0
end
end