Notifications
Clear all
Topic starter
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
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