Undefined index error when updating graph without graphid.

XMLWordPrintable

    • Type: Problem report
    • Resolution: Duplicate
    • Priority: Trivial
    • None
    • Affects Version/s: 5.0.31, 6.0.14rc1
    • Component/s: API (A)
    • None

      Steps to reproduce:

      Make graph.update API request without graphid parameter. For example: 

      {"name": "Graph name"}

      Result:

      Undefined index: graphid [api_jsonrpc.php:63 -> CJsonRpc->execute() -> CLocalApiClient->callMethod() -> CGraphGeneral->update() -> CApiService->extendObjects() -> CConfigFile->{closure}() in include/classes/api/CApiService.php:721]
      Undefined index: graphid [api_jsonrpc.php:63 -> CJsonRpc->execute() -> CLocalApiClient->callMethod() -> CGraphGeneral->update() -> CConfigFile->{closure}() in include/classes/api/services/CGraphGeneral.php:62] 

            Assignee:
            Zabbix Development Team
            Reporter:
            Miks Kronkalns
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: