summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2015-05-09 09:48:11 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2015-05-09 09:48:11 +0000
commit6b11840b4268769e003b0255f52eb03657d5ad38 (patch)
treec447ebbf68fbba2a73eb6db4a60766c8e364d07f /app
parente95542908a2ac81fe5ce6db901c901630466931a (diff)
downloadredmine-6b11840b4268769e003b0255f52eb03657d5ad38.tar.gz
redmine-6b11840b4268769e003b0255f52eb03657d5ad38.zip
Fixed that issue validation fails if % done field is deactivated (#19731).
git-svn-id: http://svn.redmine.org/redmine/trunk@14241 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/models/issue.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/issue.rb b/app/models/issue.rb
index f865f403e..9ea7f6c57 100644
--- a/app/models/issue.rb
+++ b/app/models/issue.rb
@@ -1601,6 +1601,7 @@ class Issue < ActiveRecord::Base
tracker.disabled_core_fields.each do |attribute|
send "#{attribute}=", nil
end
+ self.done_ratio ||= 0
end
end
end