Patch #2991

Spent time field shouldn't be report unless it has value

Added by Jason Messmer over 4 years ago.

Status:NewStart date:2009-03-17
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:-

Description

Spent time field shouldn't be reported unless it has value just like the Estimated time field. Currently, the only way to add spent time is with the timesheet plugin.

In the issues show view you could do:

    <% if User.current.allowed_to?(:view_time_entries, @project) %>
      <% if @issue.spent_hours > 0 %>
         <td class="spent-time"><b><%=l(:label_spent_time)%>:</b></td>
        <td class="spent-hours"><%= (link_to lwr(:label_f_hour, @issue.spent_hours), {:controller => 'timelog', :action => 'details', :project_id => @project, :issue_id => @issue}, :class => 'icon icon-time') %>
        <% end %>
    <% end %>

Also available in: Atom PDF