Problem/Motivation

Reset to default doesn't seem to do anything as overrides are not being reverted to the default dashboard layout.

Steps to reproduce

- As an admin create a dashboard with the powered by Drupal block.
- Logged in as a user with following permissions: Can override My dashboard dashboard & Can view My dashboard dashboard.
- Place or move the block in the override screen, save.
- Clear cache & reload page (in order to see the block to be added or changed #3205095: Overriding a dashboard requires a cache clear
- Go to override again
- Click reset to default (this goes back to the view dashboard page?)
- Nothing has changed
- Clear the cache, now the item is changed
- Go into override mode
- Now there is a prompt there are unchanged changes to be saved (but the added blocks are still there)
- Saved the config but nothing changed (cleared cache again as well)

Proposed resolution

Check why the button isn't working

Remaining tasks

Fix the bug

User interface changes

N/A

API changes

N/A

Data model changes

N/A

Issue fork dashboards-3205096

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

BramDriesen created an issue. See original summary.

bramdriesen’s picture

bramdriesen’s picture

Entry is being deleted from the database, however the layout view somehow manages to still load the old data. So I suspect this to be related to some sort of cache/revision issue. Maybe related to the linked issue above.

bramdriesen’s picture

Issue summary: View changes

bramdriesen’s picture

Partially fixed. The button now works because the cached version isn't shown on the display page when you override it. However the override screen still loads the cached version.

bramdriesen’s picture

Status: Active » Needs review

Going to create a child issue for the override screen loading the previous override since it's not cache related it seems. (manually and programatically cleared the cache after reverting the dashboard but no change to the override screen).

bramdriesen’s picture

This can be set to fixed now? :)

erik seifert’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.