gantt_progress_calculation_fix.patch

Etienne Massip, 2011-03-12 17:36

Download (854 Bytes)

View differences:

lib/redmine/helpers/gantt.rb (working copy)
639 639
          end
640 640
        
641 641
          if progress
642
            progress_date = start_date + (end_date - start_date) * (progress / 100.0)
642
            progress_date = start_date + (end_date - start_date + 1) * (progress / 100.0)
643 643
            if progress_date > self.date_from && progress_date > start_date
644 644
              if progress_date < self.date_to
645
                coords[:bar_progress_end] = progress_date - self.date_from + 1
645
                coords[:bar_progress_end] = progress_date - self.date_from
646 646
              else
647 647
                coords[:bar_progress_end] = self.date_to - self.date_from + 1
648 648
              end