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 assign user to task #396

Closed
siamak-haschemi opened this issue Jan 18, 2012 · 9 comments
Closed

Cannot assign user to task #396

siamak-haschemi opened this issue Jan 18, 2012 · 9 comments

Comments

@siamak-haschemi
Copy link

Hi,

on the task-board, when I try to add a task to a user story, the modal dialog does not show any user, so that I cannot assign a user to the task. See screenshot on http://qcentral.org/452342343.png

System Info:

  • Backlogs version v0.7.7 (f9b572d)
  • Redmine version 1.3.0.stable
  • Firefox 9.0.1
  • Mac OSX (Snow Leopard)
  • Redmine Plug-ins:
    • Redmine Backlogs
    • Redmine Mylyn Connector
@retorquere
Copy link
Contributor

Any errors in the logfile?

@siamak-haschemi
Copy link
Author

No, nothing in the server logs. But FireBug tells me:

RB is not defined
if (RB.constants == null) {

http://MY_SERVER/redmine/rb/server_variables.js (Line 1)

@siamak-haschemi
Copy link
Author

FireBug hint "RB is not defined" is gone, but still no chance to assign user.

And no specific log output in production.log. Is there any place to increase verbosity of output?

Processing RbTaskboardsController#show (for 78.53.35.45 at 2012-01-20 23:47:25) [GET]
  Parameters: {"sprint_id"=>"31", "action"=>"show", "controller"=>"rb_taskboards"}
Rendering template within layouts/rb
Rendering rb_taskboards/show
Completed in 2242ms (View: 1950, DB: 247) | 200 OK [http://my-server/redmine/rb/taskboards/31]


Processing RbAllProjectsController#server_variables (for 78.53.35.45 at 2012-01-20 23:47:28) [GET]
  Parameters: {"action"=>"server_variables", "controller"=>"rb_all_projects"}
Rendering rb_server_variables/show.js.erb
Completed in 28ms (View: 13, DB: 1) | 200 OK [http://my-server/redmine/rb/server_variables.js]


Processing RbServerVariablesController#sprint (for 78.53.35.45 at 2012-01-20 23:47:28) [GET]
  Parameters: {"sprint_id"=>"31", "action"=>"sprint", "controller"=>"rb_server_variables"}
Rendering rb_server_variables/show.js.erb
Completed in 32ms (View: 6, DB: 2) | 200 OK [http://my-server/redmine/rb/server_variables/sprint/31.js]

@siamak-haschemi
Copy link
Author

OK, things are going strage. With the current head 9905e7c (v0.7.9) loading the task boards results in following error log:

Processing RbTaskboardsController#show (for 78.53.35.45 at 2012-01-21 00:09:32) [GET]
  Parameters: {"sprint_id"=>"31", "action"=>"show", "controller"=>"rb_taskboards"}
Rendering template within layouts/rb
Rendering rb_taskboards/show

ActionView::TemplateError (Expected /opt/bitnami/rubystack-2.1-0/apps/redmine/vendor/plugins/redmine_backlogs/lib/color.rb to define Color) on line #1 of vendor/plugins/redmine_backlogs/app/views/rb_tasks/_task.html.erb:
1: 
> 2:
3:
<%= render :partial => "rb_stories/tooltip", :object => task %>
4:
<%= issue_link_or_empty(task) %>
vendor/plugins/redmine_backlogs/app/helpers/rb_common_helper.rb:24:in `build_inline_style' vendor/plugins/redmine_backlogs/app/views/rb_tasks/_task.html.erb:1 vendor/plugins/redmine_backlogs/app/views/rb_taskboards/show.html.erb:73 vendor/plugins/redmine_backlogs/app/views/rb_taskboards/show.html.erb:71:in `each' vendor/plugins/redmine_backlogs/app/views/rb_taskboards/show.html.erb:71 vendor/plugins/redmine_backlogs/app/views/rb_taskboards/show.html.erb:52:in `each' vendor/plugins/redmine_backlogs/app/views/rb_taskboards/show.html.erb:52 app/helpers/application_helper.rb:980:in `content_for' vendor/plugins/redmine_backlogs/app/views/rb_taskboards/show.html.erb:29 vendor/plugins/redmine_backlogs/app/controllers/rb_taskboards_controller.rb:50 vendor/plugins/redmine_backlogs/app/controllers/rb_taskboards_controller.rb:49:in `show' config/initializers/mongrel.rb:62:in `dispatch_cgi' Rendering /opt/bitnami/rubystack-2.1-0/apps/redmine/public/500.html (500 Internal Server Error)

@siamak-haschemi
Copy link
Author

Going back to tag v0.7.8 and applying d9c6eff shows me users to assign.

@retorquere
Copy link
Contributor

But 0.7.9 does not work? Any errors on 0.7.9 in your rails log?

@retorquere retorquere reopened this Jan 21, 2012
@siamak-haschemi
Copy link
Author

Yes, see the above comment with "Things are going strange ..."

@retorquere
Copy link
Contributor

diff --git a/app/helpers/rb_common_helper.rb b/app/helpers/rb_common_helper.rb
index ecc96a2..70f94aa 100644
--- a/app/helpers/rb_common_helper.rb
+++ b/app/helpers/rb_common_helper.rb
@@ -21,7 +21,7 @@ module RbCommonHelper
''
else
color_to = task.assigned_to.backlogs_preference(:task_color)

  •  color_from = Color.new(color_to).lighten(0.5)
    
  •  color_from = Backlogs::Color.new(color_to).lighten(0.5)
    
    "style='
    background-color:#{task.assigned_to.backlogs_preference(:task_color)};
    background: -webkit-gradient(linear, left top, left bottom, from(#{color_from}), to(#{color_to}));

@siamak-haschemi
Copy link
Author

An additional change was neccessary for me: https://gist.github.com/1652899

Works for me now.

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

2 participants