From 3a8f9e5ba1c3dc5aca2e3a060dd9074e53903429 Mon Sep 17 00:00:00 2001 From: Hagen Schink Date: Wed, 3 Jul 2013 10:55:06 +0200 Subject: [PATCH] Reference planning elements in wikis via work package --- app/helpers/application_helper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 6aec39cc9a..874e49696e 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -1157,7 +1157,7 @@ module ApplicationHelper end link_to(h(text), - project_planning_element_path(planning_element.project, planning_element), + work_package_path(planning_element), :title => planning_element.subject) end @@ -1188,7 +1188,7 @@ module ApplicationHelper end link = link_to(h("*#{planning_element.id} #{planning_element.planning_element_status.nil? ? "" : planning_element.planning_element_status.name + ":"} #{planning_element.subject} "), - project_planning_element_path(planning_element.project, planning_element), + work_package_path(planning_element), :title => h("#{truncate(planning_element.subject, :length => 100)} #{planning_element.planning_element_status.nil? ? "" : "(" + planning_element.planning_element_status.name + ")"}")) link += "#{planning_element.start_date.nil? ? "[?]" : planning_element.start_date.to_s}#{start_date_change} – #{planning_element.end_date.nil? ? "[?]" :