mirror of
https://github.com/moodle/moodle.git
synced 2025-03-29 03:52:33 +01:00
The order of bulk actions was not preserved when rendering the bulk actions content due to asynchronous operations. This fix ensures that the actions are added to the `data.actions` array in the correct order by using a temporary array to store the promises and then processing them sequentially. Also improved the JSDoc for better clarity on what the function returns and what it resolves to.