gantt_no_due_date_fix.diff

Anonymous, 2010-09-10 14:22

Download (1.05 KB)

View differences:

lib/redmine/helpers/gantt.rb
298 298
            start_date ||= self.date_from
299 299
            start_left = ((start_date - self.date_from)*options[:zoom]).floor
300 300

  
301
            i_end_date = ((project.due_date <= self.date_to) ? project.due_date : self.date_to )
302
            i_done_date = start_date + ((project.due_date - start_date+1)* project.completed_percent(:include_subprojects => true)/100).floor
301
            i_end_date = project.due_date
302
            i_end_date ||= self.date_to
303
            i_end_date = (i_end_date <= self.date_to ? i_end_date : self.date_to )
304
            
305
            i_done_date = start_date + ((i_end_date - start_date+1)* project.completed_percent(:include_subprojects => true)/100).floor
303 306
            i_done_date = (i_done_date <= self.date_from ? self.date_from : i_done_date )
304 307
            i_done_date = (i_done_date >= self.date_to ? self.date_to : i_done_date )
305 308