Project

General

Profile

Actions

Patch #2991

closed

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

Added by Jason Messmer about 15 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
2009-03-17
Due date:
% Done:

0%

Estimated time:

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 %>
Actions

Also available in: Atom PDF