Project

General

Profile

Actions

Patch #2991

closed

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

Added by Jason Messmer almost 16 years ago. Updated almost 9 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 #1

Updated by Go MAEDA almost 9 years ago

  • Status changed from New to Closed

Implemented in r14273, available since Redmine 3.1.0.

Actions

Also available in: Atom PDF