Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-12578

Undefined index for tag (widget on dashboard)

XMLWordPrintable

    • Sprint 15, Sprint 16
    • 1

      Undefined index for widget on dashboard if name and value of tag don't match (dashboard.create, dashboard.update)

      "method": "dashboard.create",
          "params": {
              "name": "Widgets - create dashboard with widgets",
                  "widgets": [
                      {   "type": "problems",
                          "name": "widget Problems",
                          "x": "0",
                          "y": "0",
                          "width": "6",
                          "height": "5",
                          "fields": [
                              {
                                  "type": "1",
                                  "name": "tags.tag.0",
                                  "value": "tag1"
                              },
                              {
                                  "type": "1",
                                  "name": "tags.value.1",
                                  "value": "value for tag1"
                              }
                          ]
                      }
                  ] 
          },

      I get error:

      Undefined index: tag [zabbix.php:21 ? require_once() ? ZBase->run() ? ZBase->processRequest() ? CController->run() ? CControllerWidget->checkInput() ? CWidgetConfig::getForm() ? CProblemsWidgetForm->__construct() ? CWidgetFieldTags->setValue() in include/classes/widgetfields/CWidgetFieldTags.php:45]

      In edit widget mode:

      Undefined index: tag [zabbix.php:21 ? require_once() ? ZBase->run() ? ZBase->processRequest() ? CController->run() ? CControllerDashbrdWidgetConfig->doAction() ? CWidgetConfig::getForm() ? CProblemsWidgetForm->__construct() ? CWidgetFieldTags->setValue() in include/classes/widgetfields/CWidgetFieldTags.php:45]
      Undefined index: value [zabbix.php:21 ? require_once() ? ZBase->run() ? ZBase->processRequest() ? CView->getOutput() ? include() in app/views/monitoring.dashboard.config.php:180]
      Undefined index: tag [zabbix.php:21 ? require_once() ? ZBase->run() ? ZBase->processRequest() ? CView->getOutput() ? include() in app/views/monitoring.dashboard.config.php:177]
      

            Miks.Kronkalns Miks Kronkalns
            Tatsiana Malykh Tatsiana Malykh (Inactive)
            Team B
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: