Fix bug with strange offsets in Gantt chart task bars.

This commit is contained in:
Drake 2006-11-07 20:01:17 +00:00
parent f3f511d0c8
commit c208b956a3
2 changed files with 2 additions and 6 deletions

View file

@ -34,6 +34,7 @@
- fix: "orig_dependant" JavaScript error in PM quick task display
- fix: Tasks now start at zero duration in the PM system
- fix: RSS for collaboration systems now properly shows in the head rather than the body
- fix: Gantt chart bars erroneously being shifted one day to the right
7.1.4
- Template variables in the main Survey Template were out of date in the

View file

@ -1623,12 +1623,7 @@ sub www_drawGanttChart {
my $multiplier = $isMSIE ? 22 : 20;
$hash->{'task.div.top'} = $divTop + ($multiplier*$taskCount);
#Interval includes current day if the start date is not the start of the month so add 1
my $adder = 1;
if($dt->epochToSet($startMonth) eq $dt->epochToSet($startDate)) {
$adder = 0;
}
my $daysFromStart = ($dt->getDaysInInterval($startMonth,$startDate)+$adder);
my $daysFromStart = $dt->getDaysInInterval($startMonth,$startDate);
#Add day part of predecessor if necessary
#$eh->warn("Task $seq is currently $daysFromStart days from the first day on ".$dt->epochToHuman($startDate));
my $daysLeft = $daysFromStart;