Details
-
Type:
Problem report
-
Status: Closed
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: 4.0.10
-
Fix Version/s: 4.0.11rc1, 4.4 (plan)
-
Component/s: Frontend (F)
-
Labels:
-
Team:Team B
-
Sprint:Sprint 54 (Jul 2019)
-
Story Points:1
Description
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.
Attachments
Issue Links
- part of
-
ZBX-16388 Add explicit check/update to preprocessing step ordering in LLD
-
- Closed
-