backlogs / redmine_backlogs

A Redmine plugin for agile teams
https://backlogs.github.io/www/
GNU General Public License v2.0
773 stars 460 forks source link

Quick edit of story in taskboard shows wrong trackers #1115

Open danielvijge opened 8 years ago

danielvijge commented 8 years ago

Steps to reproduce:

  1. Configure Backlogs with 2 story trackers, lets say "User story" and "Bug"
  2. Configure Backlog with enabled sharing, and share with subprojects
  3. Create a project, say "Master project", and a subproject "Sub project"
  4. For "Sub project", enable the "User story" and "Bug" tracker
  5. For "Master project", enable only "Bug" (or no tracker at all)
  6. Create a new User story in "Sub project"
  7. Go to the backlog of "Master project". The story from the child project is shown
  8. Double click the story to edit it

Actual result:

  1. The trackers of "Master project" are shown instead of the trackers of "Sub project". In the steps from above, the tracker will be either Bug, or it will be empty 2a. If a original tracker is not available in "Master project" the tracker type will be changed automatically 2b. If no trackers are available, saving is not possible and there is an error message

Expected results:

The error is in apps/views/rb_stories/_helper.html.rb:17 <%- RbStory.trackers(:project => @project, :type => :trackers).each do |tracker| %> @project refers to the current project, not the project of the story itself.