##// END OF EJS Templates
Fixed: gantt broken when no due date on project issues and versions....
Jean-Philippe Lang -
r4064:a7fd592db403
parent child
Show More
@@ -432,13 +432,14 class Project < ActiveRecord::Base
432 432 end
433 433 end
434 434
435 # The latest due date of an issue or version
435 # The latest due date of an issue or version, otherwise today
436 436 def due_date
437 437 if module_enabled?(:issue_tracking)
438 438 [
439 439 issues.maximum('due_date'),
440 440 shared_versions.collect(&:effective_date),
441 shared_versions.collect {|v| v.fixed_issues.maximum('due_date')}
441 shared_versions.collect {|v| v.fixed_issues.maximum('due_date')},
442 Date.today
442 443 ].flatten.compact.max
443 444 end
444 445 end
General Comments 0
You need to be logged in to leave comments. Login now