fix work package special reports:

* add report local to template
* fix path to work package reports
pull/648/head
jwollert 11 years ago committed by Sebastian Schuster
parent b3405248e0
commit 3d9f5de489
  1. 7
      app/views/work_packages/reports/report_details.html.erb
  2. 5
      features/work_packages/reports.feature

@ -30,10 +30,13 @@ See doc/COPYRIGHT.rdoc for more details.
<h2><%=l(:label_summary)%></h2>
<h3><%=@report_title%></h3>
<%= render :partial => 'report', :locals => { :statuses => @statuses,
:rows => @rows,
:data => @data,
:field_name => @field } %>
:field_name => @field,
:report => @report } %>
<br />
<%= link_to l(:button_back), report_project_issues_path(@project) %>
<%= link_to l(:button_back), report_project_work_packages_path(@project) %>

@ -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"

Loading…
Cancel
Save