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"