Boxes load calls hook boxes_load_alter which replaces the box with the correct overridden box if it is implemented in a space. However boxes that are implemented only in the space are not returned. This can be resolved by calling get() with no parameters on the boxes controller.

If you are working with spaces dashboard, then boxes does essentially the same thing by checking for the "spaces_dashboard_admin_form".

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

rbrandon’s picture

Patch that loads the spaces blocks if you are in a space and uses the standard ctools export load otherwise. Note that spaces->get() calls the ctools load as well to get it's original values.

emackn’s picture

Status: Needs review » Postponed (maintainer needs more info)

need steps to reproduce the problem.

rbrandon’s picture

Create a box in a spaces context. The box gets serialized and put into the spaces_overrides table. Since the box never exists in the boxes table the boxes load does not load it.

rbrandon’s picture

Status: Postponed (maintainer needs more info) » Needs review