kulesa/redmine_better_gantt_chart — Issue #51: Gantt Chart Fails to display when all tasks don't have assigned start/end dates.
Author: ccuadrado
Created: 2012-02-28 19:01:50+00:00
State: open

I get the following error when trying to view a Gantt chart with tasks that are not assigned a start date.

Issue is remedied by assigning a definite start date

ActionView::TemplateError (undefined method `<=>' for nil:NilClass) on line #56 of vendor/plugins/redmine_better_gantt_chart/app/views/gantts/show.html.erb:
53: # Width of the entire chart
54: g_width = (@gantt.date_to - @gantt.date_from + 1)*zoom
55:
56: @gantt.render(:top => headers_height + 8, :zoom => zoom, :g_width => g_width, :subject_width => subject_width)
57:
58: g_height = [(20 * (@gantt.number_of_rows + 6))+150, 206].max
59: t_height = g_height + headers_height

app/models/project.rb:660:in `project_tree'
app/models/project.rb:656:in `each'
app/models/project.rb:656:in `project_tree'
vendor/plugins/redmine_better_gantt_chart/app/views/gantts/show.html.erb:56
passenger (2.2.8) lib/phusion_passenger/rack/request_handler.rb:92:in `process_request'
passenger (2.2.8) lib/phusion_passenger/abstract_request_handler.rb:207:in `main_loop'
passenger (2.2.8) lib/phusion_passenger/railz/application_spawner.rb:385:in `start_request_handler'
passenger (2.2.8) lib/phusion_passenger/railz/application_spawner.rb:343:in `handle_spawn_application'
passenger (2.2.8) lib/phusion_passenger/utils.rb:184:in `safe_fork'
passenger (2.2.8) lib/phusion_passenger/railz/application_spawner.rb:341:in `handle_spawn_application'
passenger (2.2.8) lib/phusion_passenger/abstract_server.rb:352:in `__send__'
passenger (2.2.8) lib/phusion_passenger/abstract_server.rb:352:in `main_loop'
passenger (2.2.8) lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
passenger (2.2.8) lib/phusion_passenger/abstract_server.rb:163:in `start'
passenger (2.2.8) lib/phusion_passenger/railz/application_spawner.rb:209:in `start'
passenger (2.2.8) lib/phusion_passenger/spawn_manager.rb:262:in `spawn_rails_application'
passenger (2.2.8) lib/phusion_passenger/abstract_server_collection.rb:126:in `lookup_or_add'
passenger (2.2.8) lib/phusion_passenger/spawn_manager.rb:256:in `spawn_rails_application'
passenger (2.2.8) lib/phusion_passenger/abstract_server_collection.rb:80:in `synchronize'
passenger (2.2.8) lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
passenger (2.2.8) lib/phusion_passenger/spawn_manager.rb:255:in `spawn_rails_application'
passenger (2.2.8) lib/phusion_passenger/spawn_manager.rb:154:in `spawn_application'
passenger (2.2.8) lib/phusion_passenger/spawn_manager.rb:287:in `handle_spawn_application'
passenger (2.2.8) lib/phusion_passenger/abstract_server.rb:352:in `__send__'
passenger (2.2.8) lib/phusion_passenger/abstract_server.rb:352:in `main_loop'
passenger (2.2.8) lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously'