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

Comments

Grayside’s picture

Decompress please? That's almost like a haiku. And if they are independently useful patches, why are they both in one issue?

hefox’s picture

The 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.