-
Problem report
-
Resolution: Fixed
-
Critical
-
4.0.10
-
Sprint 54 (Jul 2019)
-
1
Problem 1:
/include/classes/api/services/CItemGeneral.php:
protected function createItemPreprocessing(array $items) {
$item_preproc = [];
$step = 1;
foreach ($items as $item) {
if (array_key_exists('preprocessing', $item)) {
foreach ($item['preprocessing'] as $preprocessing) {
$item_preproc[] = [
'itemid' => $item['itemid'],
'step' => $step++,
'type' => $preprocessing['type'],
'params' => $preprocessing['params']
];
}
}
}
Variable definition $step=1 is outside of the foreach cycle, 99999+ step can be generated.
Problem 2:
The same step generation:
Result:
Steps are performed out of order.
Expected:
Steps are performed in step by step order.
- part of
-
ZBX-16388 Add explicit check/update to preprocessing step ordering in LLD
-
- Closed
-