Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed sprint_id error

  • Loading branch information...
commit 90bbd6108ef5305d6434cbd7ec1f8de8a528007a 1 parent 151583b
Marcin Jędras authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  app/controllers/user_stories_controller.rb
  2. +1 −1  init.rb
2  app/controllers/user_stories_controller.rb
View
@@ -109,7 +109,7 @@ def destroy
@user_story = UserStory.find(params[:id])
user_story_id = @user_story.id
unless @user_story.sprint.nil?
- sprint_id = @user_story.sprint_id if @user_story.sprint.user_stories.size == 1
+ sprint_id = @user_story.version_id if @user_story.sprint.user_stories.size == 1
else
unassigned_us = UserStory.find(:all, :conditions => ["version_id is null and project_id = ?", @project.id])
if unassigned_us.size == 1
2  init.rb
View
@@ -14,7 +14,7 @@
name 'Redmine Scrum Sprints plugin'
author 'Software Project- Marcin Jedras'
description 'This is Redmine plugin for scrum software development'
- version '0.1.3'
+ version '0.1.4'
project_module :sprints do
permission :view_sprints, {:sprints => [:index, :show]}
Please sign in to comment.
Something went wrong with that request. Please try again.