Forum

Planning calculatio...
 
Notifications
Clear all

Planning calculation

2 Posts
2 Users
0 Reactions
2,033 Views
(@durou-c)
Posts: 468
Contributor
Topic starter
 
[#5744]

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 ?


 
Posted : 06 Feb 2019 17H51
(@babynus)
Posts: 14952
Member Admin
 

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';
      }    

 
Posted : 06 Feb 2019 18H22
Share:

Scroll to Top