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
Guess the following scenario: a user uploads a new media item to a a field (cardinality set to unlimited). Then the users reorders the media items (i.e. move the new item to the top of the list).
Before saving, the user decides to remove one of the other items.
Result: the item is removed and the original item order is restored (having the new item at the bottom of the list).
Proposed resolution
Change the behaviour, so the item order is retained after removing an item.
Remaining tasks
Create patch.
Comment | File | Size | Author |
---|---|---|---|
#2 | media-retain-item-order-after-remove-2923029-2.patch | 623 bytes | stBorchert |
|
Comments
Comment #2
stBorchertComment #3
joseph.olstadComment #4
joseph.olstadThanks for the patch, looks good.