If language fallback is disabled the result returned by field_language() is wrong, AAMOF not even field translations matching the requested language are taken into account.

Steps to reproduce:

  1. Enable locale
  2. Update settings.php with the line
    <?php
    $conf['locale_field_language_fallback'] = FALSE;
    ?>
    
  3. Create a node with some text in its body
  4. The body is not shown
CommentFileSizeAuthor
#3 tf-871310-3.patch3.75 KBplach
#1 tf-871310-1.patch1.19 KBplach

Comments

plach’s picture

Status: Active » Needs review
Issue tags: +Quick fix
StatusFileSize
new1.19 KB

Pretty easy to fix. Tests needs to be updated.

damien tournoud’s picture

This makes perfect sense. Which tests need to be updated?

plach’s picture

StatusFileSize
new3.75 KB

Which tests need to be updated?

I'd say field display language tests. Here's the updated patch.

andypost’s picture

Status: Needs review » Reviewed & tested by the community

It works

dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to CVS HEAD. Thanks.

yched’s picture

Status: Fixed » Closed (fixed)
Issue tags: -Quick fix, -translatable fields

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