From 6b11840b4268769e003b0255f52eb03657d5ad38 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 9 May 2015 09:48:11 +0000 Subject: 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 --- app/models/issue.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'app') 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 -- cgit v1.2.3