Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDL-43306 restore: fix grade item sortorder restoration
Previously, restore was blindly inserting the old sort order into the database, causing duplicate sortorders which lead to unpredicatble sorting results. Now we will use the api function to add it after the original sortorder, this means if a duplicate exists in the original location, this item will appear after it.
- Loading branch information