relaxdiego/redmine_backlogs — Issue #319: Internal Error when try to open an issue where Story Point is setted
Author: halega
Created: 2011-11-02 11:41:49+00:00
State: open

I have upgraded to the latest master (c82a3e201a69d53840bfeef3d5913588d1aaa2af) with commands:

```bash
sudo git checkout master
sudo git pull origin
sudo RAILS_ENV=production rake redmine:backlogs:install
sudo /etc/init.d/apache2 restart
```
And now when I try to open any issue where Story Point field is setted I get "Internal error". If I clear Story Points (via Backlogs view), it starts open.

In /var/log/apache2/errors.log:

```
ActionView::TemplateError (data series 'points' is too long (got 33, expected 6)) on line #45 of app/views/issues/show.rhtml:
42: <% end %>
43:

44: <%= render_custom_fields_rows(@issue) %>
45: <%= call_hook(:view_issues_show_details_bottom, :issue => @issue) %>
46:

47:
48: <% if @issue.description? || @issue.attachments.any? -%>

vendor/plugins/redmine_backlogs/app/models/rb_sprint.rb:23:in `initialize'
vendor/plugins/redmine_backlogs/app/models/rb_sprint.rb:23:in `each'
vendor/plugins/redmine_backlogs/app/models/rb_sprint.rb:23:in `initialize'
vendor/plugins/redmine_backlogs/app/models/rb_sprint.rb:231:in `new'
vendor/plugins/redmine_backlogs/app/models/rb_sprint.rb:231:in `burndown'
lib/redmine/hook.rb:63:in `send'
lib/redmine/hook.rb:63:in `call_hook'
lib/redmine/hook.rb:63:in `each'
lib/redmine/hook.rb:63:in `call_hook'
lib/redmine/hook.rb:60:in `tap'
lib/redmine/hook.rb:60:in `call_hook'
lib/redmine/hook.rb:144:in `call_hook'
app/views/issues/show.rhtml:45:in `_run_rhtml_app47views47issues47show46rhtml'
app/controllers/issues_controller.rb:121:in `show'
app/controllers/issues_controller.rb:120:in `show'
/usr/lib/ruby/1.8/phusion_passenger/rack/request_handler.rb:92:in `process_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:418:in `start_request_handler'
/usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:358:in `handle_spawn_application'
/usr/lib/ruby/1.8/phusion_passenger/utils.rb:184:in `safe_fork'
/usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:354:in `handle_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:in `main_loop'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:196:in `start_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:213:in `start'
/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:in `lookup_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:in `synchronize'
/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:in `spawn_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:in `handle_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:in `main_loop'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
/usr/lib/phusion_passenger/passenger-spawn-server:61
```