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.
Thanks to all who worked on issue 951004 (especially @mglaman). Now multiple files can be uploaded at once! The files however appear in reverse order on the Node Edit Form. There was some discussion about this in issue 951004 (see #118, #136, #204, #205), but I'm not sure what was decided. So much work was put into this, this small matter may need its own issue.
Comment | File | Size | Author |
---|---|---|---|
#6 | media-multiselect-fix-order-2834464-6.patch | 1.34 KB | ann b |
|
Comments
Comment #2
ann b CreditAttribution: ann b commentedPatch #3 is actually code from the #205 patch of the Allow selecting of multiple media items for a multi value media field in the same dialog issue. So many thanks to @gregori.goossens, @jsst and @uniquename.
Comment #3
ann b CreditAttribution: ann b commentedComment #5
ann b CreditAttribution: ann b commentedPatch was created incorrectly.
Comment #6
ann b CreditAttribution: ann b commentedComment #7
ann b CreditAttribution: ann b commentedComment #8
joseph.olstadThanks! Any reviewers?
Comment #9
joseph.olstadIt would be nice to get this into the next release candidate at some point. I'm willing to put it in dev, if there's a problem afterwards, we can always revert.
Comment #10
ann b CreditAttribution: ann b commentedThank you Joseph. The code change is minor, and I did test the patch before uploading it. Adding it to dev shouldn't cause a problem. I also sent a PM to the developers who created the original patch, in case they wanted to help with the review.
Comment #12
joseph.olstadIt is committed to 7.x-2.x dev. If there's no reported problems between now and the next release, it will make it into 7.x-2.0-rc2
Thanks very much!
Comment #13
ann b CreditAttribution: ann b commentedThank you Joseph!
Comment #14
jsst CreditAttribution: jsst at Ibuildings commentedThanks for the perseverance on this issue Ann!
For what it's worth, the solution that landed in 7.x-2.x is the right one: I've seen patch #205 (in the other thread) being used in production for more than a year. The mistake was merging patch #219 which was based on #197 (which was confirmed broken) instead of #205 (where we fixed the ordering issue by explicitly setting the weight on each file upload and reversing the items client-side).
Comment #15
ann b CreditAttribution: ann b commentedYou're welcome @jsst! And thank you for providing the code and taking the time to review the new patch.