Details
-
Type:
Problem report
-
Status: Closed
-
Priority:
Trivial
-
Resolution: Fixed
-
Affects Version/s: 4.0.11, 4.2.5, 4.4.0alpha1
-
Fix Version/s: 4.0.13rc1, 4.2.7rc1, 4.4.0alpha3, 4.4 (plan)
-
Component/s: API (A)
-
Labels:
-
Team:Team B
-
Sprint:Sprint 56 (Sep 2019), Sprint 55 (Aug 2019)
-
Story Points:0.25
Description
Create standard request as it is in documentation, but use pie graph instead.
{ "jsonrpc": "2.0", "method": "graph.create", "params": { "name": "graph", "width": 100, "height": 100, "graphtype": "2", "gitems": [ { "itemid": "22828", "color": "00AA00" } ] }, "auth": "038e1d7b1735c6a5436ee9eae095879e", "id": 1 }
And observe error:
Undefined index: type [... → CFrontendApiWrapper->create() → CApiWrapper->__call() → CFrontendApiWrapper->callMethod() → CApiWrapper->callMethod() → CFrontendApiWrapper->callClientMethod() → CLocalApiClient->callMethod() → call_user_func_array() → CGraphGeneral->create() → CGraph->validateCreate() → CGraphGeneral->validateCreate() → CGraphGeneral->checkAxisItems() in include\classes\api\services\CGraphGeneral.php:298]