summaryrefslogtreecommitdiffstats
path: root/app/helpers/issues_helper.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2016-07-12 19:28:49 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2016-07-12 19:28:49 +0000
commit03dbf8abb881e333256b1cf046b04532b3164d21 (patch)
treea85915265ada3067d3d94e40e14cf1540f87a1af /app/helpers/issues_helper.rb
parentf01b0887ff3ac48bfc7a45b05a8ec17891ddfe19 (diff)
downloadredmine-03dbf8abb881e333256b1cf046b04532b3164d21.tar.gz
redmine-03dbf8abb881e333256b1cf046b04532b3164d21.zip
Remove special behaviour for listing issue time entries, use a filter for that.
git-svn-id: http://svn.redmine.org/redmine/trunk@15644 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers/issues_helper.rb')
-rw-r--r--app/helpers/issues_helper.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/app/helpers/issues_helper.rb b/app/helpers/issues_helper.rb
index 2557b8cc7..8d23d95cd 100644
--- a/app/helpers/issues_helper.rb
+++ b/app/helpers/issues_helper.rb
@@ -135,11 +135,13 @@ module IssuesHelper
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), issue_time_entries_path(issue))
+ 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), issue_time_entries_path(issue)})"
+ s << " (#{l(:label_total)}: #{link_to l_hours_short(issue.total_spent_hours), path})"
s.html_safe
end
end