[ZBX-12578] Undefined index for tag (widget on dashboard) Created: 2017 Aug 23 Updated: 2024 Apr 10 Resolved: 2017 Sep 11 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Frontend (F) |
Affects Version/s: | 3.4.1rc1, 4.0.0alpha1 |
Fix Version/s: | 3.4.2rc1, 4.0.0alpha1, 4.0 (plan) |
Type: | Problem report | Priority: | Major |
Reporter: | Tatsiana Malykh (Inactive) | Assignee: | Miks Kronkalns |
Resolution: | Fixed | Votes: | 0 |
Labels: | api, dashboard, widget | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified |
Team: | Team B |
Team: | Team B |
Sprint: | Sprint 15, Sprint 16 |
Story Points: | 1 |
Description |
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] |
Comments |
Comment by Alexander Vladishev [ 2017 Aug 29 ] |
Partially RESOLVED in ^/branches/dev/ |
Comment by Miks Kronkalns [ 2017 Aug 31 ] |
Fix works together with ^/branches/dev/ RESOLVED in ^/branches/dev/ |
Comment by Miks Kronkalns [ 2017 Aug 31 ] |
(1) No translation string changes. iivs CLOSED |
Comment by Ivo Kurzemnieks [ 2017 Sep 04 ] |
(3) [F] Error in edit form: Miks.Kronkalns RESOLVED in r72155 (by merging ^/branches/dev/ iivs json_encode should not be used plainly. REOPENED Miks.Kronkalns RESOLVED in r72199 iivs CLOSED |
Comment by Miks Kronkalns [ 2017 Sep 06 ] |
Fixed:
|