Problem/Motivation
There is an issue with the Devel module conflicting with the Dashboard module. At admin/structure/dashboard blocks can be successfully placed into dashboards regions. However, at admin/dashboard dragged blocks don't retain their new location. This is because the Devel module, which has the "switch user" block, is converting underscores to hyphens when blocks are rearranged on the dashboard, affecting block CSS IDs and block deltas.
Steps to replicate:
- Go to the block admin style UI (admin/structure/dashboard) and move the 'switch user' block into one of the dashboard regions (sidebar).
- Go to the dashboard UI (admin/dashboard). The block is in the sidebar.
- Click configure.
- Drag the block to the main content region.
- Click 'Done'.
Proposed resolution
Add module-<module name>
and delta-<delta>
classes to enabled blocks.
Patch in #16 implements this fix for D7 and D8.
Remaining tasks
- Patch in #16 is RTBC.
- Patch needs backport to D7.
User interface changes
Two additional CSS classes will be available on dashboard blocks: module-modulename
and delta-N
. Blocks will be correctly ordered based on these classes.
API changes
None.
Original report by [joachim]
At admin/structure/dashboard I can place blocks into two dashboard regions, yet at admin/dashboard I still appear to be free to move them around to either region ... except that when I click 'Done', the ones set at the first page snap back.
This is confusing. In fact, the whole business of having two pages is confusing -- the UI doesn't explain why there are two and how they relate to each other.