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

Cannot add a task to a user story #70

Open
dr-itz opened this issue Nov 28, 2010 · 0 comments
Open

Cannot add a task to a user story #70

dr-itz opened this issue Nov 28, 2010 · 0 comments

Comments

@dr-itz
Copy link

dr-itz commented Nov 28, 2010

Using Redmine and current git of scum-pm

Dashboard -> user story -> add task

  • the windows opens up and allows filling in
  • clicking "create" gives a HTTP 500 with the following backtrace:
    TypeError (can't convert nil into String):
    lib/redmine/hook.rb:63:in send' lib/redmine/hook.rb:63:incall_hook'
    lib/redmine/hook.rb:63:in each' lib/redmine/hook.rb:63:incall_hook'
    lib/redmine/hook.rb:60:in call_hook' lib/redmine/hook.rb:141:incall_hook'
    app/controllers/issues_controller.rb:128:in create' /usr/lib/ruby/1.8/phusion_passenger/rack/request_handler.rb:95:inprocess_request'
    /usr/lib/ruby/1.8/phusion_passenger/abstract_request_handler.rb:207:in main_loop' /usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:374:instart_request_handler'
    /usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:332:in handle_spawn_application' /usr/lib/ruby/1.8/phusion_passenger/utils.rb:184:insafe_fork'
    /usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:330:in handle_spawn_application' /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:insend'
    /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in main_loop' /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:196:instart_synchronously'
    /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:163:in start' /usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:209:instart'
    /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:262:in spawn_rails_application' /usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb:126:inlookup_or_add'
    /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:256:in spawn_rails_application' /usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb:80:insynchronize'
    /usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb:79:in synchronize' /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:255:inspawn_rails_application'
    /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:154:in spawn_application' /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:287:inhandle_spawn_application'
    /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in __send__' /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:inmain_loop'
    /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
    /usr/lib/phusion_passenger/passenger-spawn-server:61

the following (wrong) patchlet lets me creates issues, but not assigned to the user story:
diff --git a/lib/hooks.rb b/lib/hooks.rb
index aa5dd42..2b9662d 100644
--- a/lib/hooks.rb
+++ b/lib/hooks.rb
@@ -4,10 +4,10 @@ module RedmineSprints
render_on :view_issues_show_details_bottom, :partial => "issue_sprints/redirect_after_create"

     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.i
-      end
+#      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.
+#      end
     end
   end

tasks can then be assigned to user stories using drag'n'drop from the "unassigned tasks"

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