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.

Comments

realityloop created an issue. See original summary.

realityloop’s picture

Title: Views display as Rendered Entity has stopped working with Beans as when using the dev release dev, I believe it may be related to commit #51ddede » Views display as Rendered Entity has stopped working for Beans when using the dev
realityloop’s picture

Status: Active » Needs review
StatusFileSize
new568 bytes

Patch to resolve

realityloop’s picture

Title: Views display as Rendered Entity has stopped working for Beans when using the dev » Views display as Rendered Entity has stopped working for Beans when using bean dev release
realityloop’s picture

Issue summary: View changes
realityloop’s picture

Issue summary: View changes
realityloop’s picture

Status: Needs review » Needs work

This patch has the negative effect of causing other cases where a bean would get rendered to now display 2 copies.

realityloop’s picture

realityloop’s picture

undoing the mentioned commit fixes both regular bean rendering and the view result.

damienmckenna’s picture

Maybe adding some tests would help here?

netrics’s picture

I'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.

damienmckenna’s picture

Issue tags: +Needs tests
skwashd’s picture

Status: Needs work » Needs review

I've performed some manual tests. Without the patch from #3 the following error for each block in the view:

Notice: Undefined index: block-[bid] in entity_views_plugin_row_entity_view->render() (line 94 of /path/to/entity/views/plugins/entity_views_plugin_row_entity_view.inc).

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:

realityloop’s picture

I agree with @skwashd's suggested approach

  • skwashd committed 7a232f9 on 7.x-1.x
    Revert "Issue #2527008 by axel.rutz: Display cache breaks bean display...
skwashd’s picture

Status: Needs review » Fixed

The 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.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.