Context only loads some of the block table fields, instead of the sel;ect * in block_load. Since there is not hook_block_load() functionility in drupal 7, modules that need fields in the block object need to append columns to block table. So context should load all the block table fields, and remove those it is overridding (status, visibility, and cache I believe).
(love this module!)
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | context-load-all-block-table-fields-1154908-4.patch | 1.3 KB | tekante |
| #1 | context-should-load-all-block-table-fields-1154908-1.patch | 3.31 KB | johnbarclay |
Comments
Comment #1
johnbarclay commentedhere's a patch for this.
Comment #2
bowersox commented+1 for getting this issue addressed.
If the current practice is for modules to add columns to the block table, then we should be loading them all.
Comment #3
tekante commentedAdding tag for tracking
Comment #4
tekante commentedPatch in 1 does not apply, attaching a version that should apply against the latest 7.x-3.x version. Needs feedback on whether this resolves the error that you are having (or information about how to replicate some of the inconsistent behavior). Could also use results of testing out this patch on your site.
Comment #5
mgiffordChanging status for bot.
Comment #6
tekante commentedPatch committed