Display component weights are no longer respected following #2099131: Use #pre_render pattern for entity render caching. Reordering the fields on an entity display does not affect the output. There are no tests for this.

Steps to duplicate

Go to the user account display settings, and reorder the "Member For" and "Picture" components. The order is not reflected.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

rbayliss’s picture

Status: Active » Needs review
FileSize
1.14 KB

Here is a test that should demonstrate the problem. This should fail.

rbayliss’s picture

And the fix.

The last submitted patch, 1: field_weights_are_not-2306611-1-tests-only.patch, failed testing.

longwave’s picture

Status: Needs review » Reviewed & tested by the community

Manually tested, works for me.

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Committed 01bb126 and pushed to 8.x. Thanks!

  • alexpott committed 01bb126 on 8.x
    Issue #2306611 by rbayliss: Fixed Field weights are not respected on...

Status: Fixed » Closed (fixed)

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