Patch #2991
Spent time field shouldn't be report unless it has value
| Status: | New | Start date: | 2009-03-17 | |
|---|---|---|---|---|
| Priority: | Normal | Due 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 %>