First community, first community, context created, saved, but not reloaded, so the drupal_alter in context_load is never called.Results in empty dashboard on first load.
Two patches, two different approaches
Context, have context taken as reference in context_save then loaded at end.
Spaces_dashboard, reload context after saving.
Both patches work independently
| Comment | File | Size | Author |
|---|---|---|---|
| context_reference_load_save.patch | 740 bytes | hefox | |
| spaces_dashboard_empty.patch | 614 bytes | hefox |
Comments
Comment #1
Grayside commentedDecompress please? That's almost like a haiku. And if they are independently useful patches, why are they both in one issue?
Comment #2
hefox commentedThe issue is that the $context is empty as items are added during load that otherwise would not be there.
The different patches are different ways to fix this issue.
The first is simply grabbing a fresh version of the context after calling context_save, so fixes the specific occurrence.
The second one changes context_save to be like user_save, takes in $context as reference, and reloads the $context in context_save.