Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quick edit of story in taskboard shows wrong trackers #1115

Open
danielvijge opened this issue Feb 18, 2016 · 0 comments
Open

Quick edit of story in taskboard shows wrong trackers #1115

danielvijge opened this issue Feb 18, 2016 · 0 comments

Comments

@danielvijge
Copy link

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:

  • Dropdown for tracker type should show the tracker type of the project the story belongs to

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant