https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292018-04-03T02:48:10ZRedmineRedmine - Defect #28409: Total estimated time value not visible when tracker has estimate time field disabledhttps://www.redmine.org/issues/28409?journal_id=843482018-04-03T02:48:10ZGo MAEDA
<ul><li><strong>File</strong> <a href="/attachments/20406">before@2x.png</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/20406/before@2x.png">before@2x.png</a> added</li><li><strong>File</strong> <a href="/attachments/20407">after@2x.png</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/20407/after@2x.png">after@2x.png</a> added</li></ul><p>I agree with Sebastian Paluch. Here is a patch without tests.</p>
<pre><code class="diff syntaxhl"><span class="gh">Index: app/views/issues/show.html.erb
===================================================================
</span><span class="gd">--- app/views/issues/show.html.erb (revision 17253)
</span><span class="gi">+++ app/views/issues/show.html.erb (working copy)
</span><span class="p">@@ -64,7 +64,7 @@</span>
unless @issue.disabled_core_fields.include?('done_ratio')
rows.right l(:field_done_ratio), progress_bar(@issue.done_ratio, :legend => "#{@issue.done_ratio}%"), :class => 'progress'
end
<span class="gd">- unless @issue.disabled_core_fields.include?('estimated_hours')
</span><span class="gi">+ unless @issue.disabled_core_fields.include?('estimated_hours') && @issue.total_estimated_hours.blank?
</span> rows.right l(:field_estimated_hours), issue_estimated_hours_details(@issue), :class => 'estimated-hours'
end
if User.current.allowed_to?(:view_time_entries, @project) && @issue.total_spent_hours > 0
</code></pre>
<p><strong>Before:</strong><br /><img src="https://www.redmine.org/attachments/download/20406/before@2x.png" srcset="https://www.redmine.org/attachments/download/20406/before@2x.png 2x" style="width: 756px;" alt="" /></p>
<p><strong>After:</strong><br /><img src="https://www.redmine.org/attachments/download/20407/after@2x.png" srcset="https://www.redmine.org/attachments/download/20407/after@2x.png 2x" style="width: 756px;" alt="" /></p> Redmine - Defect #28409: Total estimated time value not visible when tracker has estimate time field disabledhttps://www.redmine.org/issues/28409?journal_id=850052018-05-14T09:30:26ZGo MAEDA
<ul><li><strong>Target version</strong> set to <i>Candidate for next minor release</i></li></ul> Redmine - Defect #28409: Total estimated time value not visible when tracker has estimate time field disabledhttps://www.redmine.org/issues/28409?journal_id=852482018-05-28T05:09:41ZTomomi Yuzuriha
<ul><li><strong>File</strong> <a href="/attachments/20778">tests.patch</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/20778/tests.patch">tests.patch</a> added</li></ul><p>I've added the test-code for Go MAEDA's patch(<a class="issue tracker-1 status-1 priority-4 priority-default" title="Defect: Total estimated time value not visible when tracker has estimate time field disabled (New)" href="https://www.redmine.org/issues/28409#note-1">#28409-1</a>).</p> Redmine - Defect #28409: Total estimated time value not visible when tracker has estimate time field disabledhttps://www.redmine.org/issues/28409?journal_id=979312020-05-25T20:40:45ZSebastian Paluch
<ul></ul><p>Any chance to get this minor thing in soon?</p> Redmine - Defect #28409: Total estimated time value not visible when tracker has estimate time field disabledhttps://www.redmine.org/issues/28409?journal_id=980372020-06-02T13:11:06ZGo MAEDA
<ul><li><strong>Target version</strong> changed from <i>Candidate for next minor release</i> to <i>4.2.0</i></li></ul><p>Setting the target version to 4.2.0.</p> Redmine - Defect #28409: Total estimated time value not visible when tracker has estimate time field disabledhttps://www.redmine.org/issues/28409?journal_id=998712020-11-28T08:53:33ZGo MAEDA
<ul><li><strong>Target version</strong> changed from <i>4.2.0</i> to <i>Candidate for next major release</i></li></ul><p>I found a problem in patch <a class="issue tracker-1 status-1 priority-4 priority-default" title="Defect: Total estimated time value not visible when tracker has estimate time field disabled (New)" href="https://www.redmine.org/issues/28409#note-1">#28409#note-1</a>.</p>
<p>Redmine shows estimated hours for a parent task in some cases even if estimated hours is disabled. You can reproduce the problem with the following steps:</p>
<p>1. Set any value to the estimated hours field of a parent task and subtask<br />2. Disable the estimated hours field for the tracker<br />3. Open the parent task. The value of the parent task's estimated hour should not be displayed because the field is disabled, but both the parent's estimated hours and total estimated hours are displayed</p>