I have a project with activities with fixed durations because i don't know when the project will begin.
I fill in duration and work in validated fields, the number of days for every activitie of the project.
When I calculate activities planning, all is ok on planning but all validated durations disapeared !
So if i calculate activities plannings on again, all activities are at same level and planned duration is equal to one day for all activities !
It was ok with 4.3.2 but since I updated to 4.5.0, calculate activities planning seems to doesn't work with fixed durations ?
Thanks for your answer
Vincent
Issue recorded as Ticket #1619
Fixed !
In /model/planningElement.php, replace function simpleSave(), line 444, from
public function simpleSave() {
$this->plannedDuration=workDayDiffDates($this->plannedStartDate, $this->plannedEndDate);
$this->validatedDuration=workDayDiffDates($this->validatedStartDate, $this->validatedEndDate);
$this->initialDuration=workDayDiffDates($this->initialStartDate, $this->initialEndDate);
$result = parent::save();
}
to
public function simpleSave() {
$this->plannedDuration=workDayDiffDates($this->plannedStartDate, $this->plannedEndDate);
if ($this->validatedStartDate and $this->validatedEndDate) {
$this->validatedDuration=workDayDiffDates($this->validatedStartDate, $this->validatedEndDate);
}
if ($this->initialStartDate and $this->initialEndDate) {
$this->initialDuration=workDayDiffDates($this->initialStartDate, $this->initialEndDate);
}
$result = parent::save();
}
Too fast :woohoo: !
I'll try tomorrow morning
Thanks a lot !
Patch V4.5.1 is deployed
