scrum-pm
scrum-pm copied to clipboard
Patch for exception after issue creation
Creating issue on Dashboard site lead to exception. Solution:
/lib/hooks.rb @@ -6,8 +6,13 @@ module RedmineSprints def controller_issues_new_before_save(context = {}) context[:issue].user_story_id = context[:params][:issue][:user_story_id] if context[:issue].user_story_id && context[:issue].fixed_version_id - context[:issue].redirect_to = url_for(:controller => :sprints, :action => "show", :id => context[:issue].fixed_version_id, :project_id => context[:issue].project.identifier)+"/"+context[:issue].id + if context[:issue].id + context[:issue].redirect_to = url_for(:controller => :sprints, :action => "show", :id => context[:issue].fixed_version_id, :project_id => context[:issue].project.identifier)+"/"+context[:issue].id + else + context[:issue].redirect_to = url_for(:controller => :sprints, :action => "show", :id => context[:issue].fixed_version_id, :project_id => context[:issue].project.identifier) + end + puts ":controller_issues_new_before_save 99" end end
Thank you! This error was becoming me nuts!
this path solved same problem with redmine 1.1.3