Forum

Projeqtor 4.5.0 : b...
 
Notifications
Retirer tout

Projeqtor 4.5.0 : bug in planning calculation when planning ="work in common" / patch V4.5.1

6 Posts
2 Utilisateurs
0 Reactions
6,118 Vu
(@maikeul)
Posts: 3
Active Member
Début du sujet
 
[#2105]

Hello,

I just upgraded to version 4.5.0 and I have a problem with planning calculation when I select "work in common" in the 'Planning" field of the activity.
The application says that "an error has occured"

Here is what I found in the log :
2014-11-24 12:48:57 ** ERROR ** on file '/appli/projeqtor/model/Resource.php' at line (327)
2014-11-24 12:48:57 ** ERROR ** cause = Missing argument 2 for Resource::findAffectationRate(), called in /appli/projeqtor/model/PlannedWork.php on line 563 and defined
2014-11-24 12:49:29 ** ERROR ** ERROR *****

Thanks for your help !


 
Posté : 24/11/2014 4:11 pm
(@babynus)
Posts: 14952
Membre Admin
 

Ticket #1617 recorded.


 
Posté : 24/11/2014 9:22 pm
(@babynus)
Posts: 14952
Membre Admin
 

Fix found.

In /model/PlannedWork.php, replace line 563

$rateProj=Resource::findAffectationRate($grp['ResourceWork'][$projectKey]['rate']) / 100;

with

$rateProj=Resource::findAffectationRate($grp['ResourceWork'][$projectKey]['rate'],$currentDate) / 100;

Fix will be included in patch V4.5.1 (coming soon)


 
Posté : 24/11/2014 9:26 pm
(@maikeul)
Posts: 3
Active Member
Début du sujet
 

Thanks a lot, i'll apply this fix tomorrow morning 😉


 
Posté : 24/11/2014 9:28 pm
(@maikeul)
Posts: 3
Active Member
Début du sujet
 

Fix applied, everything's ok, thanks 😉


 
Posté : 25/11/2014 11:31 am
(@babynus)
Posts: 14952
Membre Admin
 

Patch V4.5.1 is deployed


 
Posté : 27/11/2014 12:35 am
Share:
Retour en haut