The code that runs in case there's only one view mode contains a little bug.
It uses the value (Human readable name) of the view mode array item instead its key.
Attached patch fixes that.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

drunken monkey’s picture

Status: Needs review » Fixed

Oops, thanks for spotting this!
Committed.

Status: Fixed » Closed (fixed)

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

Anonymous’s picture

Issue summary: View changes

Typo & formatting