View ProjeQtOr On SourceForge.net
ProjeQtOr - Project Management Tool
Support us on Capterra
OIN - Open Invention Network
ProjeQtOr free project management software - Problem with fixed durations when calculate activities planning with 4.5.0 - Ticket #1619 - ProjeQtOr
 
 

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

More
25 Nov 2014 22:31 - 26 Nov 2014 08:47 #1 by vporcelli
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
Attachments:
Last edit: 26 Nov 2014 08:47 by protion.
The topic has been locked.
More
25 Nov 2014 22:51 #2 by babynus
Issue recorded as Ticket #1619

Babynus
Administrator of ProjeQtOr web site
The topic has been locked.
More
25 Nov 2014 23:02 #3 by babynus
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();
  }

Babynus
Administrator of ProjeQtOr web site
The topic has been locked.
More
25 Nov 2014 23:07 #4 by vporcelli
Too fast :woohoo: !

I'll try tomorrow morning

Thanks a lot !
The topic has been locked.
More
26 Nov 2014 22:34 #5 by babynus
Patch V4.5.1 is deployed

Babynus
Administrator of ProjeQtOr web site
The topic has been locked.
Moderators: babynusprotion
Time to create page: 0.052 seconds

Cookies settings

×

Functional Cookies

Ce site utilise des cookies pour assurer son bon fonctionnement et ne peuvent pas être désactivés de nos systèmes. Nous ne les utilisons pas à des fins publicitaires. Si ces cookies sont bloqués, certaines parties du site ne pourront pas fonctionner.

Session

Please login to see yours activities!

Other cookies

Ce site web utilise un certain nombre de cookies pour gérer, par exemple, les sessions utilisateurs.