Commit b90233bb authored by anfor's avatar anfor Committed by olstjos

Issue #2474639 by anfor: Loss upload order after submitting several media

parent 991b3643
...@@ -408,6 +408,7 @@ function media_field_widget_submit($form, &$form_state) { ...@@ -408,6 +408,7 @@ function media_field_widget_submit($form, &$form_state) {
} }
} }
ksort($submitted_values);
// Re-index deltas after removing empty items. // Re-index deltas after removing empty items.
$submitted_values = array_values($submitted_values); $submitted_values = array_values($submitted_values);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment