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.
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.
Comment | File | Size | Author |
---|---|---|---|
#2 | field_weights_are_not-2306611-2.patch | 1.8 KB | rbayliss |
#1 | field_weights_are_not-2306611-1-tests-only.patch | 1.14 KB | rbayliss |
Comments
Comment #1
rbayliss CreditAttribution: rbayliss commentedHere is a test that should demonstrate the problem. This should fail.
Comment #2
rbayliss CreditAttribution: rbayliss commentedAnd the fix.
Comment #4
longwaveManually tested, works for me.
Comment #5
alexpottCommitted 01bb126 and pushed to 8.x. Thanks!