Hello,
After update with the last version, i launch a planning calcul. After that in report Synthesis of availability all poll have 0 availability whithout planification (green color). Some error in log files see in attachement.
This looks like a real major issue.
Ticket #4106 recorded.
Issue fixed.
Will be included in patch V8.1.1
Fix is to replace few line in 2 files : lines 250+ in /model/Assignment.php from and lines 711+ in /model/PlanningElement.php
if (substr($field,-4)=='Date') {
$query.=" $field='".$newVal."' ";
} else {
$query.=" $field=".$newVal;
}
to
if ($newVal===null or $newVal==='') {
$query.=" $field=null ";
} else if (substr($field,-4)=='Date') {
$query.=" $field='".$newVal."' ";
} else {
$query.=" $field=".$newVal;
}
thanks for your answer. I have a ressource with important expertise on PHP. I would help you on this sujet. How i can help you ?
I thging our last messages crossed.
Issue already fixed.
After modification no crach but i have this error:
2019-07-03 17:10:21.660 ===== TRACE ===== Error for planning mode '16' not found in Planning Mode table
I have check all data and i have exactly the same data in my table.
Sorry, the problem is id 15 and 16 are same. Id 16 do not exist. now all is ok
