プロジェクト

全般

プロフィール

Vote #81196

未完了

Link_to_Timelog_query

Admin Redmine さんが約2年前に追加. 約2年前に更新.

ステータス:
New
優先度:
通常
担当者:
-
カテゴリ:
Time tracking_13
対象バージョン:
-
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
13
version_id:
0
issue_org_id:
34476
author_id:
263566
assigned_to_id:
0
comments:
3
status_id:
1
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[New]

説明

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),.
!Link_to_Timelog_query.JPG!
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

journals

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),.
> !Link_to_Timelog_query.JPG!
> 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

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

Admin Redmine さんが約2年前に更新

  • カテゴリTime tracking_13 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0