When I use entity reference for reference a bean entity in a node, my bean block have textarea field and image field.
It seem the textarea is rendered but not the image.

When I look to the code it seem the bug come from bean_view function where $langcode is undifined ("und").
As it is not null, it doesn't set $GLOBALS['language_content']->language as value and don't find image I uploaded in the field.

My patch fix my problem but I don't know if it don't affect any other usecase.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Kleinast created an issue. See original summary.

drupalove’s picture

Status: Active » Needs review

Changing the status to needs review.

Status: Needs review » Needs work

The last submitted patch, bean_fix_render_view.patch, failed testing.

drupalove’s picture

Version: 7.x-1.9 » 7.x-1.x-dev

Patches should be applied to the dev release, thus changing the version.

Status: Needs work » Needs review

drupalove queued bean_fix_render_view.patch for re-testing.

Status: Needs review » Needs work

The last submitted patch, bean_fix_render_view.patch, failed testing.

drupalove’s picture

I think you need to redo the patch against dev before a maintainer looks at it. Thanks.

Status: Needs work » Needs review

Kleinast queued bean_fix_render_view.patch for re-testing.

Status: Needs review » Needs work

The last submitted patch, bean_fix_render_view.patch, failed testing.

Kleinast’s picture

Sorry, it should be better now

Kleinast’s picture

Status: Needs work » Active
drupalove’s picture

Status: Active » Needs review