This seems to be a regression bug of #1107264: FieldsRSIPreventor class handles node languages incorrectly and duplicates core functionality.

The problem is, that we call field_get_items on the media_gallery node and ask for media_gallery_media_original. This is just a temporary property, we add on node-load. Therefore field_get_items returns no items.

Problem file: media_gallery.theme.inc
Problem line:
79 $type_count = media_gallery_get_media_type_count($node, 'media_gallery_media_original');

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Moloc’s picture

Status: Active » Needs review
FileSize
1.46 KB

Here is a workaround / patch.

lsolesen’s picture

Where can I see the problem in the UI? I cannot find anywhere with a count?

Moloc’s picture

In the all galleries page.
When you hover a gallery(node), then the title is displayed. In beta7 and with this patch, there is also the amount of items displayed in the hover message.

lsolesen’s picture

Status: Needs review » Reviewed & tested by the community

Confirmed that the patch works.

Moloc’s picture

Status: Reviewed & tested by the community » Fixed

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