Project

General

Profile

Actions

Defect #34476

open

Link_to_Timelog_query

Added by ciel ciel over 3 years ago. Updated over 2 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Time tracking
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Affected version:

Description

I have been working with Redmine 3.4.6.6, for 3 years, and in order to customize the display instead of details of the field (spent time) to a custom table in the linker of the default table (example I created the query_1 report),.

I have not found the solution to remedy this problem, please some help me to solve this problem , think the patch should be ported to the part of this code halper /issues_helper rb

def issue_spent_hours_details(issue)
    if issue.total_spent_hours > 0
      path = project_time_entries_path(issue.project, :issue_id => "~#{issue.id}")

      if issue.total_spent_hours == issue.spent_hours
        link_to(l_hours_short(issue.spent_hours), path)
      else
        s = issue.spent_hours > 0 ? l_hours_short(issue.spent_hours) : "" 
        s << " (#{l(:label_total)}: #{link_to l_hours_short(issue.total_spent_hours), path})" 
        s.html_safe
      end
    end
  end

Files

Link_to_Timelog_query.JPG (70.1 KB) Link_to_Timelog_query.JPG ciel ciel, 2020-12-19 00:39
Actions #1

Updated by ciel ciel over 3 years ago

ciel ciel wrote:
h2. > I have been working with Redmine 3.4.6.6, for 3 years, and in order to customize the display instead of details of the field (spent time) to a custom table in the linker of the default table (example I created the query_1 report),.


I have not found the solution to remedy this problem, please some help me to solve this problem , think the patch should be ported to the part of this code halper /issues_helper rb
def issue_spent_hours_details(issue)
if issue.total_spent_hours > 0
path = project_time_entries_path(issue.project, :issue_id => "~#{issue.id}")

if issue.total_spent_hours == issue.spent_hours
link_to(l_hours_short(issue.spent_hours), path)
else
s = issue.spent_hours > 0 ? l_hours_short(issue.spent_hours) : ""
s << " (#{l(:label_total)}: #{link_to l_hours_short(issue.total_spent_hours), path})"
s.html_safe
end
end
end

Actions #2

Updated by Go MAEDA about 3 years ago

  • Category changed from Forums to Time tracking
Actions #3

Updated by Go MAEDA over 2 years ago

  • Description updated (diff)
Actions

Also available in: Atom PDF