Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#10 | 0001-bean_fix_render_view.patch | 417 bytes | Kleinast |
bean_fix_render_view.patch | 572 bytes | Kleinast | |
Comments
Comment #2
drupalove CreditAttribution: drupalove as a volunteer commentedChanging the status to needs review.
Comment #4
drupalove CreditAttribution: drupalove as a volunteer commentedPatches should be applied to the dev release, thus changing the version.
Comment #7
drupalove CreditAttribution: drupalove as a volunteer commentedI think you need to redo the patch against dev before a maintainer looks at it. Thanks.
Comment #10
Kleinast CreditAttribution: Kleinast as a volunteer commentedSorry, it should be better now
Comment #11
Kleinast CreditAttribution: Kleinast as a volunteer commentedComment #12
drupalove CreditAttribution: drupalove as a volunteer commented