Needs review
Project:
Boxes
Version:
6.x-1.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Aug 2011 at 15:05 UTC
Updated:
3 Nov 2011 at 19:11 UTC
Jump to comment: Most recent file
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".
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | boxes_load_spaces_boxes-1252130-1.patch | 1.09 KB | rbrandon |
Comments
Comment #1
rbrandon commentedPatch 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.
Comment #2
emackn commentedneed steps to reproduce the problem.
Comment #3
rbrandon commentedCreate 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.
Comment #4
rbrandon commented