Hello,
I've another weird behavior that can be reproduced in the gantt version 4.0.2, the attached file can be used in the advance example, and the steps are like this:
Open the screen and you will see 4 tasks:
Summary:
Setup Web Server:
Install Apache
Configure firewall
At the beginning it shows Summary 6 days, Setup web server 6 days, Install Apache 4 and Configure Firewall 2, now if you press right click in the setup web server and go to edit task, and without any change press cancel you will see that the values changes to:
Summary 8 days and Setup web server 8 days
As I was trying to figure out if this was caused by custom code in our project I debugged the core for some time and I saw a weird behavior in the method HasSchedulingModeMixin.calculateEndDate
When the method is executed the first time for "Setup web server" the dispatch resolution has the following values:
StartDate 0
EndDate 0
Duration 3
Effort 4
Units 0
And this causes the code in the superProto.calculateEndDate.call(this); to be executed, but when you open and close the task editor the new dispatcher has the values:
StartDate 0
EndDate 6
Duration 3
Effort 4
Units 0
Which now causes the code to execute the "calculateProjectedXDateByEffort", which is wrong as summaries should not consider the effort but the subtasks max end date, so not sure what should be the right behavior but certainly the first time (when the dispatcher has the enddate as 0) it works find and the calculation is right.
Any suggestions?