After reverting a bean_type exported with features, it still appears as reverted in the bean admin UI (not in features).
To replicate:
* create a bean type
* export with features
* edit and change description so it gets overridden
* revert with features
* visit bean admin ui
Only a flush of all caches allows to show the correct status of the bean type.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | bean-1786036.patch | 5.31 KB | jonhattan |
| #1 | bean-1786036.patch | 5.25 KB | jonhattan |
Comments
Comment #1
jonhattanSeveral changes proposed in this patch:
* hook_bean_cache_clear(), invoked from bean_reset() so each module is responsible to clean its own caches.
* adjusted ctools caches needed to be cleared.
* provide bean_type_features_revert() to have the chance to bean_reset() after revert.
* Removed bean_admin_ui_get_types() and call directly to ctools_export_load_object() since it already caches.
Comment #2
jonhattanComment #3
jonhattanneeded a call to
ctools_include('export').note on this:
I actually use this patch from a feature in install profile.
Comment #4
indytechcook commentedThanks jonhattan. Good to see that you are working on features, it's not something that I use.
Most of this looks good. I do want to keep bean_admin_ui_get_types() as removing it would be an API change and that's something I'd like to avoid since were in a RC. Removing the extra layer of caching is a good idea though.
Keep bean_admin_ui_get_types()
Keep but get rid of extra caching layer.
This looks like it's part of the features revert patch.
Comment #5
indytechcook commentedThanks. http://drupal.org/commitlog/commit/22232/cd6155f5b7ed7e4d0a6b6c579b3f6a1...