https://www.redmine.org/
https://www.redmine.org/favicon.ico?1679302129
2018-01-03T07:37:15Z
Redmine
Redmine - Defect #27881: No validation errors when entering an invalid "Estimate hours" value
https://www.redmine.org/issues/27881?journal_id=82873
2018-01-03T07:37:15Z
Go MAEDA
<ul><li><strong>Related to</strong> <i><a class="issue tracker-1 status-5 priority-4 priority-default closed" href="/issues/12955">Defect #12955</a>: Misbehaviour in estimated time validation</i> added</li></ul>
Redmine - Defect #27881: No validation errors when entering an invalid "Estimate hours" value
https://www.redmine.org/issues/27881?journal_id=82877
2018-01-03T08:05:08Z
Go MAEDA
<ul></ul><p>I found a very similar fix <a class="changeset" title="Fixed: no error is raised when entering invalid hours on the issue update form (#2465)." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/2251">r2251</a> (<a class="issue tracker-1 status-5 priority-5 priority-high2 closed" title="Defect: Spent time error (Closed)" href="https://www.redmine.org/issues/2465">#2465</a>). The following workaround should work.</p>
<pre><code class="diff syntaxhl"><span class="gh">Index: app/models/issue.rb
===================================================================
</span><span class="gd">--- app/models/issue.rb (revision 17140)
</span><span class="gi">+++ app/models/issue.rb (working copy)
</span><span class="p">@@ -440,7 +440,7 @@</span>
end
def estimated_hours=(h)
<span class="gd">- write_attribute :estimated_hours, (h.is_a?(String) ? h.to_hours : h)
</span><span class="gi">+ write_attribute :estimated_hours, (h.is_a?(String) ? (h.to_hours || h) : h)
</span> end
safe_attributes 'project_id',
</code></pre>
Redmine - Defect #27881: No validation errors when entering an invalid "Estimate hours" value
https://www.redmine.org/issues/27881?journal_id=82878
2018-01-03T08:06:01Z
Go MAEDA
<ul><li><strong>Related to</strong> <i><a class="issue tracker-1 status-5 priority-5 priority-high2 closed" href="/issues/2465">Defect #2465</a>: Spent time error</i> added</li></ul>
Redmine - Defect #27881: No validation errors when entering an invalid "Estimate hours" value
https://www.redmine.org/issues/27881?journal_id=82880
2018-01-03T08:27:53Z
Go MAEDA
<ul><li><strong>File</strong> <a href="/attachments/19817">fix-27881.diff</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/19817/fix-27881.diff">fix-27881.diff</a> added</li><li><strong>Target version</strong> set to <i>3.3.6</i></li></ul><p>Attaching a patch file. Setting target version to 3.3.6.</p>
Redmine - Defect #27881: No validation errors when entering an invalid "Estimate hours" value
https://www.redmine.org/issues/27881?journal_id=82945
2018-01-07T21:43:52Z
Jean-Philippe Lang
jp_lang@yahoo.fr
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Closed</i></li><li><strong>Resolution</strong> set to <i>Fixed</i></li></ul><p>Committed, thanks.</p>