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.
Problem/Motivation
Reordering a multi valued block field seems to save the wrong block config for items that are moved. See screens.
Before moving:
After moving:
After saving:
Note that after saving, the labels and Display title config has been swapped between the Standards mode and Standards discipline blocks.
Proposed resolution
Fix it!
Remaining tasks
Fix, test.
Comment | File | Size | Author |
---|---|---|---|
#4 | 2925436-4.patch | 2.34 KB | fenstrat |
|
Comments
Comment #2
acbramley CreditAttribution: acbramley at PreviousNext for Transport for NSW commentedTaking a look at this now.
Comment #3
acbramley CreditAttribution: acbramley at PreviousNext for Transport for NSW commentedComment #4
fenstratTricky little bug this! Tracked it back to the delta being used to save the widget settings (plugin/block id is being saved correctly, it's just the settings that are getting mixed up). Thankfully
WidgetBase::extractFormValues()
provides us with an_original_delta
value which can be used to get the correct settings.Attached patch fixes this, test-only should fail to demonstrate the issue.
Comment #6
acbramley CreditAttribution: acbramley at PreviousNext for Transport for NSW commentedVery nice! Looks good to me!
Comment #8
fenstratCheers!