-
Type:
Problem report
-
Resolution: Unresolved
-
Priority:
Trivial
-
None
-
Affects Version/s: 7.4.11
-
Component/s: API (A)
Steps to reproduce:
- Have a template linked to a host.
- In template create a new discovery rule (type=Nested).
- Click "Create"
Result:
Error message, about inability to create such rule. (correct)
Undefined index message:
Undefined array key "templateid" [host_discovery.php:604 → CApiWrapper->__call() → CFrontendApiWrapper->callMethod() → CApiWrapper->callMethod() → CApiWrapper->callClientMethod() → CLocalApiClient->callMethod() → CDiscoveryRule->create() → CDiscoveryRule::inherit() → CDiscoveryRule::checkInheritedNestedItems() in include/classes/api/services/CDiscoveryRule.php:948]
Expected:
Only error message about inability to create such discovery rule.