Fix bug with strange offsets in Gantt chart task bars.
This commit is contained in:
parent
f3f511d0c8
commit
c208b956a3
2 changed files with 2 additions and 6 deletions
|
|
@ -34,6 +34,7 @@
|
||||||
- fix: "orig_dependant" JavaScript error in PM quick task display
|
- fix: "orig_dependant" JavaScript error in PM quick task display
|
||||||
- fix: Tasks now start at zero duration in the PM system
|
- 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: 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
|
7.1.4
|
||||||
- Template variables in the main Survey Template were out of date in the
|
- Template variables in the main Survey Template were out of date in the
|
||||||
|
|
|
||||||
|
|
@ -1623,12 +1623,7 @@ sub www_drawGanttChart {
|
||||||
my $multiplier = $isMSIE ? 22 : 20;
|
my $multiplier = $isMSIE ? 22 : 20;
|
||||||
$hash->{'task.div.top'} = $divTop + ($multiplier*$taskCount);
|
$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 $daysFromStart = $dt->getDaysInInterval($startMonth,$startDate);
|
||||||
my $adder = 1;
|
|
||||||
if($dt->epochToSet($startMonth) eq $dt->epochToSet($startDate)) {
|
|
||||||
$adder = 0;
|
|
||||||
}
|
|
||||||
my $daysFromStart = ($dt->getDaysInInterval($startMonth,$startDate)+$adder);
|
|
||||||
#Add day part of predecessor if necessary
|
#Add day part of predecessor if necessary
|
||||||
#$eh->warn("Task $seq is currently $daysFromStart days from the first day on ".$dt->epochToHuman($startDate));
|
#$eh->warn("Task $seq is currently $daysFromStart days from the first day on ".$dt->epochToHuman($startDate));
|
||||||
my $daysLeft = $daysFromStart;
|
my $daysLeft = $daysFromStart;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue