Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#2972 closed Bug (fixed)

Dashboard widget layout resets to default layout unexpectedly

Reported by: matt Owned by:
Priority: major Milestone: 1.7.x - Piwik 1.7.1
Component: UI - UX (AngularJS, twig, less) Keywords:
Cc: Sensitive: no

Description (last modified by matt)

From forum report

How to reproduce?

Default dashboard
I remove the Widget "Visitors in Real Time" and "Visitor countries".
Next I go to Visitors -> Custom Variables.
Clicking the "Plus-Button" for more Data in the Table.
Click on Dashboard for the "Home-Site" and all widgets/layouts are reseted to the default.
This behavior do not depend on the language I selected (tested in German and English).

Tested on Firefox 10.0.2 and Chrome 17.0.963.56. 

Change History (3)

comment:1 Changed 2 years ago by matt (mattab)

  • Component changed from Core to UI (templates, javascript)

comment:2 Changed 2 years ago by matt (mattab)

  • Resolution set to fixed
  • Status changed from new to closed

(In [5902]) Fixes #2972

When a click on the menu, we delete the dashboard object. This ensures that the function notifyDashboardViewDataTableChange is not called when we are outside of the dashboard. There is probably a better way to do it, but a one line hack can't be that bad...

Here is the stacktrace that triggered the saveLayout call:

saveLayout()Dashbo...0aefe4d (line 408)
setDataTableViewChanged(uniqueId=undefined, newViewDataTable="tableAllColumns")Dashbo...0aefe4d (line 391)
notifyDashboardViewDataTableChange(domWidget=[a.tableIcon], newViewDataTable="tableAllColumns")datata...0aefe4d (line 742)
(?)()datata...0aefe4d (line 505)
add(c=Object { originalEvent=Event click, type="click", timeStamp=12938312, more...})jquery...0aefe4d (line 3)
add(a=click clientX=66, clientY=313)jquery...0aefe4d (line 3)

comment:3 Changed 2 years ago by matt (mattab)

  • Description modified (diff)
Note: See TracTickets for help on using tickets.