[ZBX-18498] Not possible to change widget type after changing Source type to "Map navigation tree" for a Map widget Created: 2020 Oct 14  Updated: 2024 Apr 10  Resolved: 2020 Oct 19

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 5.2.0rc1
Fix Version/s: 5.2.0rc1, 5.2 (plan)

Type: Problem report Priority: Trivial
Reporter: Sergejs Olonkins Assignee: Valdis Murzins
Resolution: Fixed Votes: 0
Labels: dashboard, mapstree
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: GIF File constant_config_form.gif    
Issue Links:
Causes
caused by ZBXNEXT-6001 Convert templated screens to dashboards Closed
Team: Team B
Sprint: Sprint 69 (Oct 2020)
Story Points: 0.25

 Description   

Problem description: It is not possible to change widget type in the widget configuration form after changing Source type to "Map navigation tree" of a Map widget. The following JS error is observed in the console:

Uncaught TypeError: Cannot read property 'dashboardGrid' of undefined
    at updateWidgetConfigDialogue (zabbix.php?action=dashboard.view&new=1:469)
    at HTMLInputElement.onchange (zabbix.php?action=dashboard.view&new=1:1)

Steps to reproduce:

  1. Create a new dashboard
  2. Click on the "Add widget" placeholder (or button)
  3. In the opened widget configuration form select Type = "Map"
  4. Set Source type to "Map navigation tree"
  5. Attempt to change value of field "Type"

Result: Widget configuration form is not reloaded, JS error appears in the console.
Expected: No error should be observed, widget configuration form should be reloaded, new set of parameters should be available for the selected widget type.

Example:



 Comments   
Comment by Valdis Murzins [ 2020 Oct 15 ]

Fixed in development branch feature/ZBX-18498-5.1.

Comment by Valdis Murzins [ 2020 Oct 16 ]

Fixed in:

Generated at Fri Apr 04 17:40:08 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.