Forum

Welcome to ProjeQtOr new Forum. We migrated old forum to the new website.
You will find all your posts here, with your usual account.
Just one point : you’ll have to reinitialize your password. Use “Lost password” feature.

Problem with fixed ...
 
Notifications
Clear all

Problem with fixed durations when calculate activities planning with 4.5.0 - Ticket #1619

5 Posts
2 Users
0 Reactions
3,876 Views
(@vporcelli)
Posts: 25
Active Member
Topic starter
 
[#2112]

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


 
Posted : 26 Nov 2014 0H31
(@babynus)
Posts: 14952
Member Admin
 

Issue recorded as Ticket #1619


 
Posted : 26 Nov 2014 0H51
(@babynus)
Posts: 14952
Member Admin
 

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();
  }

 
Posted : 26 Nov 2014 1H02
(@vporcelli)
Posts: 25
Active Member
Topic starter
 

Too fast :woohoo: !

I'll try tomorrow morning

Thanks a lot !


 
Posted : 26 Nov 2014 1H07
(@babynus)
Posts: 14952
Member Admin
 

Patch V4.5.1 is deployed


 
Posted : 27 Nov 2014 0H34
Share:

Scroll to Top