Skip to content


Dashboard widget layout resets to default layout unexpectedly #2972

mattab opened this Issue · 1 comment

1 participant

Piwik Open Source Analytics member

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. 
Piwik Open Source Analytics member

(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)

@mattab mattab added this to the 1.7.x - Piwik 1.7.1 milestone
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.