From 3d9f5de4894cf77d987a47d310711d4715777845 Mon Sep 17 00:00:00 2001 From: jwollert Date: Wed, 13 Nov 2013 10:50:46 +0100 Subject: [PATCH] fix work package special reports: * add report local to template * fix path to work package reports --- app/views/work_packages/reports/report_details.html.erb | 7 +++++-- features/work_packages/reports.feature | 5 +++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/app/views/work_packages/reports/report_details.html.erb b/app/views/work_packages/reports/report_details.html.erb index 98256d62b8..0674f3e924 100644 --- a/app/views/work_packages/reports/report_details.html.erb +++ b/app/views/work_packages/reports/report_details.html.erb @@ -30,10 +30,13 @@ See doc/COPYRIGHT.rdoc for more details.

<%=l(:label_summary)%>

<%=@report_title%>

+ <%= render :partial => 'report', :locals => { :statuses => @statuses, :rows => @rows, :data => @data, - :field_name => @field } %> + :field_name => @field, + :report => @report } %>
-<%= link_to l(:button_back), report_project_issues_path(@project) %> + +<%= link_to l(:button_back), report_project_work_packages_path(@project) %> diff --git a/features/work_packages/reports.feature b/features/work_packages/reports.feature index 71a3fa1897..c2402af7cb 100644 --- a/features/work_packages/reports.feature +++ b/features/work_packages/reports.feature @@ -48,3 +48,8 @@ Feature: Navigating from reports to index When I go to the work_packages/report page of the project called "parent" And I follow "Work packages" within "#main-menu" Then I should be on the work packages index page of the project called "parent" + + Scenario: Navigating from work package reports page to a type report + When I go to the work_packages/report page of the project called "parent" + And I follow "Further analyze: Type" + Then I should see "Bug" within ".list"