To Reproduce:
-Download and enable stable releases for views and entity api, download and enable the dev release of bean.
-create a block type, and create several blocks using that type.
-create a view of blocks and filter by the block type you created in the earlier step
-set the view "show" option to rendered entity
you will see no returned results after you have changed to rendered entity as the show mechanism, changing back to fields you will see results.
Cause:
I've confirmed this is caused by the following commit:
http://cgit.drupalcode.org/bean/commit/?id=3ab5e4e
A quick workaround is to leave the removed lines as well as adding the new line, patch for this coming, I'll leave it up to the maintainers to decide what is the best overall fix.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | fix_views_rendered_entity_display_with_beans-2670862-3.patch | 568 bytes | realityloop |
Comments
Comment #2
realityloop commentedComment #3
realityloop commentedPatch to resolve
Comment #4
realityloop commentedComment #5
realityloop commentedComment #6
realityloop commentedComment #7
realityloop commentedThis patch has the negative effect of causing other cases where a bean would get rendered to now display 2 copies.
Comment #8
realityloop commentedComment #9
realityloop commentedundoing the mentioned commit fixes both regular bean rendering and the view result.
Comment #10
damienmckennaMaybe adding some tests would help here?
Comment #11
netrics commentedI've tested this patch on many of my sites and can say it does the job. Am able to get node references from the bean entity and entity template overrides to work correctly.
Comment #12
damienmckennaComment #13
skwashd commentedI've performed some manual tests. Without the patch from #3 the following error for each block in the view:
Reverting commit 3ab5e4e as suggested by @realityloop also fixed the issue.
Unless someone is able to give me a simple test case (preferably in code) that shows why commit 3ab5e4e is needed, I propose we do the following things:
Comment #14
realityloop commentedI agree with @skwashd's suggested approach
Comment #16
skwashd commentedThe commit has been rolled back and 7.x-1.11 has been released. Closing this issue. Any further discussion on this issue is to occur on #2527008: Display cache breaks bean display.