-
Problem report
-
Resolution: Fixed
-
Trivial
-
4.0.31rc1, 5.0.12rc1, 5.2.7rc1, 5.4.0rc1
-
Sprint 77 (Jun 2021), Sprint 78 (Jul 2021)
-
0.5
Steps to reproduce:
- Create template
- Add web scenario, discovery rule and item prototype
- Add Graph prototype
- Add item prototype and web scenario item to graph prototype (the same if add web scenario item to "Y axis MIN/MAX value" field)
- Full clone template
- Change name and save
Result:
multiple errors
Undefined offset: 34106 [templates.php:647 → CApiWrapper->__call() → CFrontendApiWrapper->callMethod() → CApiWrapper->callMethod() → CFrontendApiWrapper->callClientMethod() → CLocalApiClient->callMethod() → CDiscoveryRule->copy() → CDiscoveryRule->copyDiscoveryRule() → CDiscoveryRule->copyGraphPrototypes() in include/classes/api/services/CDiscoveryRule.php:2416] Trying to access array offset on value of type null [templates.php:647 → CApiWrapper->__call() → CFrontendApiWrapper->callMethod() → CApiWrapper->callMethod() → CFrontendApiWrapper->callClientMethod() → CLocalApiClient->callMethod() → CDiscoveryRule->copy() → CDiscoveryRule->copyDiscoveryRule() → CDiscoveryRule->copyGraphPrototypes() in include/classes/api/services/CDiscoveryRule.php:2417] Missing "itemid" field for item.
Expected:
no errors (works fine in host) or shouldn't allow to use web scenario items in graph prototype?