ProjeQtOr free project management software - Planning calculation - ProjeQtOr

Formations en Amérique du Nord

Une formation est organisée par un de nos partenaires à Montréal.

Pour de plus amples informations, ou pour vous inscrire, rendez-vous sur notre planning de formations.

 

Planning calculation

More
06 Fév 2019 15:51 #1 by dep@eca.fr
When i did Planning calculation on v 7.4.0, I receive on log file:

2019-02-06 15:46:22.429 ===== TRACE ===== Error for planning mode not found in Planning Mode table

Which planning Mode Table is not found, on which activities ?

Please Connexion or Create an account to join the conversation.

More
06 Fév 2019 16:22 #2 by babynus
Replied by babynus on topic Planning calculation
Hi,

It is a minor warning, without issue in planing result.

Fix is to replace line 1462 and following in model/PlannedWork.php from
    $pmList=SqlList::getList('PlanningMode','code',null,true);
    foreach ($list as $id=>$elt) {
      if (!isset($pmList[$elt->idPlanningMode])) {
        traceLog("Error for planning mode '$elt->idPlanningMode' not found in Planning Mode table");
        $pmList[$elt->idPlanningMode]='ASAP';
      }
to
    $pmList=SqlList::getList('PlanningMode','code',null,true);
    $pmList['']='';
    foreach ($list as $id=>$elt) {
      if ($elt->idPlanningMode and !isset($pmList[$elt->idPlanningMode])) {
        traceLog("Error for planning mode '$elt->idPlanningMode' not found in Planning Mode table");
        $pmList[$elt->idPlanningMode]='ASAP';
      }    

Babynus
Administrator of ProjeQtOr web site
The following user(s) said Thank You: dep@eca.fr

Please Connexion or Create an account to join the conversation.

Moderators: babynusprotion
Time to create page: 0.032 seconds