Forum

Problem to change r...
 
Notifications
Retirer tout

Problem to change rate of ressource in a pool

3 Posts
3 Utilisateurs
0 Reactions
2,144 Vu
(@fge)
Posts: 1
New Member
Début du sujet
 
[#5233]

I add one ressource in pool A with 100% rate
If I want to change the rate to 60%, an error occurs because of use over than 100%
To bypass the problem, you have to change rate to 0%, save it and change rate to 60%


 
Posté : 21 Juin PM 13:066
(@alain-fourastie)
Posts: 366
Membre Moderator
 

Good afternoon,

Anomaly confirmed.
Ticket 3438
The correction will be made in the next patch


 
Posté : 21 Juin PM 14:066
(@babynus)
Posts: 14952
Membre Admin
 

Issue fixed.
Will be deployed with next patch.

Fix is to add 4 lines after line 65 in /model/ResourceTeamAffectation.php, this way (4 last lines) :

  public function control(){
    $result="";
    if($this->idle==0){
      $idResource = $this->idResource;
      $rate = $this->rate;
      if($this->id){
        $teamAff = new ResourceTeamAffectation($this->id);
        $rate = $rate - $teamAff->rate;
      }

 
Posté : 21 Juin PM 16:066
Share:
Retour en haut