Closed (fixed)
Project:
Boxes
Version:
6.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
28 May 2010 at 19:48 UTC
Updated:
5 Jul 2010 at 19:40 UTC
Jump to comment: Most recent file
The attached patch makes the internal process for instantiating a box object. The main change was to split value loading from object instantiation. Creating boxes from a value array is now cleaner, which reduces code and makes the spaces integration more straight forward.
This patch needs testing on sites that have existing boxes and custom box types.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | 812252_3_boxes.patch.txt | 10.06 KB | David Goode |
| #5 | 812252_20100601_2.patch | 9.26 KB | jmiccolis |
| #3 | 812252_20100601.patch | 8.92 KB | jmiccolis |
| #2 | 812252_20100531.patch | 8.88 KB | jmiccolis |
| #1 | 812252_20200528.patch | 8.05 KB | jmiccolis |
Comments
Comment #1
jmiccolis commentedSlightly improved patch, minor changes.
Comment #2
jmiccolis commentedThis patch changes the way overrides are stored. Previously we where storing an array representation of the box in a spaces override, however ctools always returns an object when the same settings are fetched from the `box` table, this cause all sorts of issues. Here the overrides are stored as a `stdClass` so that when they are retrieved they look just like they'd come back from ctools.
Warning: this patch does change how overrides are stored! It is meant for testing sites only! Make sure you've got backups!
Comment #3
jmiccolis commentedAnother update, this fixes a behavior which prevented overridding boxes that actually exist at the site level. However a but remains with editing site-wide boxes inline - the change gets saved and is visible on a page refresh - but the old value get's returned in the ahah call.
Comment #4
mrtorrent commentedsubscribe
Comment #5
jmiccolis commentedThis version properly clears the boxes object cache. Needs a bit more testing, but I think it's very close.
Comment #6
David Goode commentedAdded an update hook, tested with user and og space in openatrium as well as overall site space, both editing and adding. No changes made other than adding update hook.
Comment #7
jmiccolis commentedRaising the priority of this patch. We need to make sure it's in the next release.
Comment #8
jmiccolis commentedThis has been committed http://drupal.org/cvs?commit=382882
Thanks David for the testing and upgrade patch.