Defect #19731

Updated by Toshi MARUYAMA over 2 years ago

Creating a new issue fails with a validation message "% done is not valid" when then field has been removed for the tracker.

Temporarely solved the problem by changing issue.rb:

<pre><code class="ruby">

def clear_disabled_fields
if tracker
tracker.disabled_core_fields.each do |attribute|
send "#{attribute}=", nil unless attribute == "done_ratio"
end
end
end
</code></pre>

<pre>


Environment:
Redmine version 3.0.2.stable.14229
Ruby version 1.9.3-p484 (2013-11-22) [x86_64-linux]
Rails version 4.2.1
Environment production
Database adapter Mysql2
SCM:
Subversion 1.8.8
Git 1.9.1
Filesystem
Redmine plugins:
no plugin installed
</pre>

Back